Primary tabs
Introduction to classes
A lot of the PHP code in Drupal is object oriented (OO), making use of PHP classes, interfaces, and traits. See the Objected-oriented programming conventions for more information.
See also
Objected-oriented programming conventions
Name | Type | Namespace | Location | Description | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|
ConfigFormTestBase | abstract class |
Drupal\ |
core/ |
Full generic test suite for any form that data with the configuration system. | 2 | 2 | |
PluginID | class |
Drupal\ |
core/ |
Defines a Plugin annotation object that just contains an ID. | 2 | 4 | |
AjaxResponse | class |
Drupal\ |
core/ |
JSON response object for AJAX requests. | 2 | 36 | |
CacheableMetadata | class |
Drupal\ |
core/ |
Defines a generic class for passing cacheability metadata. | 2 | 129 | |
ConfigBase | abstract class |
Drupal\ |
core/ |
Provides a base class for configuration objects with get/set support. | 2 | 1 | |
ConfigFactoryOverrideBase | abstract class |
Drupal\ |
core/ |
Defines a base event listener implementation configuration overrides. | 2 | 2 | |
InstallStorage | class |
Drupal\ |
core/ |
Storage used by the Drupal installer. | 2 | 16 | |
StorableConfigBase | abstract class |
Drupal\ |
core/ |
Provides a base class for configuration objects with storage support. | 2 | 2 | |
Schema | abstract class |
Drupal\ |
core/ |
Provides a base implementation for Database Schema. | 2 | 3 | |
Container | class |
Drupal\ |
core/ |
Extends the container to prevent serialization. | 2 | 16 | |
ContentEntityConfirmFormBase | abstract class |
Drupal\ |
core/ |
Provides a generic base class for an entity-based confirmation form. | 2 | 1 | |
ContentEntityStorageBase | abstract class |
Drupal\ |
core/ |
Base class for content entity storage handlers. | 2 | 1 | |
EntityDisplayBase | abstract class |
Drupal\ |
core/ |
Provides a common base class for entity view and form displays. | 2 | 2 | |
EntityStorageException | class |
Drupal\ |
core/ |
Defines an exception thrown when storage operations fail. | 2 | 26 | |
EntityType | class |
Drupal\ |
core/ |
Provides an implementation of an entity type and its metadata. | 2 | 12 | |
ThemeEngineExtensionList | class |
Drupal\ |
core/ |
Provides a list of available theme engines. | 2 | 3 | 2 |
ThemeExtensionList | class |
Drupal\ |
core/ |
Provides a list of available themes. | 2 | 12 | 2 |
BaseFieldDefinition | class |
Drupal\ |
core/ |
A class for defining entity fields. | 2 | 82 | |
EntityReferenceFieldItemList | class |
Drupal\ |
core/ |
Defines an item list class for entity reference fields. | 2 | 3 | |
FieldConfigStorageBase | abstract class |
Drupal\ |
core/ |
Base storage class for field config entities. | 2 | 1 | |
FileTransfer | abstract class |
Drupal\ |
core/ |
Defines the base FileTransfer class. | 2 | 1 | |
ImageToolkitOperationBase | abstract class |
Drupal\ |
core/ |
Provides a base class for image toolkit operation plugins. | 2 | 2 | |
StorageBase | abstract class |
Drupal\ |
core/ |
Provides a base class for key/value storage implementations. | 2 | ||
ContextualLinkDefault | class |
Drupal\ |
core/ |
Provides a common base implementation of a contextual link. | 2 | 4 | |
ChainRequestPolicy | class |
Drupal\ |
core/ |
Implements a compound request policy. | 2 | 2 | |
EntityConverter | class |
Drupal\ |
core/ |
Parameter converter for upcasting entity IDs to full objects. | 2 | 2 | 2 |
CacheableSecuredRedirectResponse | abstract class |
Drupal\ |
core/ |
Provides a common base class for cacheable safe redirects. | 2 | ||
RouteBuilder | class |
Drupal\ |
core/ |
Managing class for rebuilding the router table. | 2 | 2 | 2 |
PublicStream | class |
Drupal\ |
core/ |
Defines a Drupal public (public://) stream wrapper class. | 2 | 15 | 2 |
TranslatableMarkup | class |
Drupal\ |
core/ |
Provides translatable markup class. | 2 | 88 | |
ComplexDataDefinitionBase | abstract class |
Drupal\ |
core/ |
Base class for complex data definitions. | 2 | 1 | |
ActionFormBase | abstract class |
Drupal\ |
core/ |
Provides a base form for action forms. | 2 | ||
ConfigTranslationEntityListBuilder | class |
Drupal\ |
core/ |
Defines the configuration translation list builder for entities. | 2 | ||
ConfigTranslationFormBase | abstract class |
Drupal\ |
core/ |
Provides a base form for configuration translations. | 2 | 1 | |
FileUsageBase | abstract class |
Drupal\ |
core/ |
Defines the base class for database file usage backend. | 2 | 1 | |
ForumBreadcrumbBuilderBase | abstract class |
Drupal\ |
core/ |
Provides a forum breadcrumb base class. | 2 | ||
ImageEffectFormBase | abstract class |
Drupal\ |
core/ |
Provides a base form for image effects. | 2 | ||
ImageStyleFormBase | abstract class |
Drupal\ |
core/ |
Base form for image style add and edit forms. | 2 | ||
Data | abstract class |
Drupal\ |
core/ |
Represents the `data` and `included` objects of a top-level object. | 2 | 1 | |
ResourceObjectData | class |
Drupal\ |
core/ |
Represents the primary data for individual and collection documents. | 2 | 3 | |
ResourceTypeField | abstract class |
Drupal\ |
core/ |
Abstract value object containing all metadata for a JSON:API resource field. | 2 | ||
NegotiatorBase | abstract class |
Drupal\ |
core/ |
Base implementation for version negotiators. | 2 | ||
LanguageFormBase | abstract class |
Drupal\ |
core/ |
Base form for language add and edit forms. | 2 | ||
ConfigureBlockFormBase | abstract class |
Drupal\ |
core/ |
Provides a base form for configuring a block. | 2 | ||
LayoutRebuildConfirmFormBase | abstract class |
Drupal\ |
core/ |
Provides a base class for confirmation forms that rebuild the Layout Builder. | 2 | ||
TranslateFormBase | abstract class |
Drupal\ |
core/ |
Defines the locale user interface translation form base. | 2 | ||
EventBase | class |
Drupal\ |
core/ |
2 | 2 | ||
SearchPageFormBase | abstract class |
Drupal\ |
core/ |
Provides a base form for search pages. | 2 | ||
WorkflowTypeConfigureFormBase | abstract class |
Drupal\ |
core/ |
A base class for workflow type configuration forms. | 2 | 2 | |
WorkflowTypeStateFormBase | abstract class |
Drupal\ |
core/ |
A base class for workflow type state forms. | 2 | 2 |