Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
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
File
-
core/
core.api.php, line 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
EntityCreate | final class | Drupal\Core\Config\Action\Plugin\ConfigAction | core/ |
@internal This API is experimental. | ||||
EntityCreateAccessCheck | class | Drupal\Core\Entity | core/ |
Defines an access checker for entity creation. | ||||
EntityCreateAnyAccessCheck | class | Drupal\Core\Entity | core/ |
Defines an access checker for creating an entity of any bundle. | ||||
EntityCreateDeriver | final class | Drupal\Core\Config\Action\Plugin\ConfigAction\Deriver | core/ |
@internal This API is experimental. | 1 | |||
EntityData | final class | mglaman\PHPStanDrupal\Drupal | vendor/ |
|||||
EntityDataDefinition | class | Drupal\Core\Entity\TypedData | core/ |
A typed data definition class for describing entities. | 3 | |||
EntityDataDefinitionInterface | interface | Drupal\Core\Entity\TypedData | core/ |
Interface for typed data entity definitions. | 1 | 2 | ||
EntityDataRepository | final class | mglaman\PHPStanDrupal\Drupal | vendor/ |
4 | ||||
EntityDateFormat | class | Drupal\system\Plugin\migrate\destination | core/ |
Migration destination for date format entity. | ||||
EntityDefinitionUpdateManager | class | Drupal\Core\Entity | core/ |
Manages entity definition updates. | ||||
EntityDefinitionUpdateManagerInterface | interface | Drupal\Core\Entity | core/ |
Defines an interface for managing entity definition updates. | 1 | 1 | ||
EntityDeleteActionDeriver | class | Drupal\Core\Action\Plugin\Action\Derivative | core/ |
Provides an action deriver that finds entity types with delete form. | 1 | |||
EntityDeleteForm | class | Drupal\Core\Entity | core/ |
Provides a generic base class for an entity deletion form. | 13 | 17 | ||
EntityDeleteFormTrait | trait | Drupal\Core\Entity | core/ |
Provides a trait for an entity deletion form. | ||||
EntityDeleteMultipleAccessCheck | class | Drupal\Core\Entity | core/ |
Checks if the current user has delete access to the items of the tempstore. | ||||
EntityDenormalizerBase | abstract class | Drupal\jsonapi\Normalizer | core/ |
Converts the Drupal entity object to a JSON:API array structure. | 2 | |||
EntityDeriver | class | Drupal\Core\Entity\Plugin\DataType\Deriver | core/ |
Provides data type plugins for each existing entity type and bundle. | 1 | |||
EntityDeriver | class | Drupal\rest\Plugin\Deriver | core/ |
Provides a resource plugin definition for every entity type. | 1 | |||
EntityDescriptionInterface | interface | Drupal\Core\Entity | core/ |
Defines the interface for entities that have a description. | 1 | 2 | ||
EntityDisplayBase | abstract class | Drupal\Core\Entity | core/ |
Provides a common base class for entity view and form displays. | 2 | 3 | ||
EntityDisplayFormBase | abstract class | Drupal\field_ui\Form | core/ |
Base class for EntityDisplay edit forms. | 2 | |||
EntityDisplayInterface | interface | Drupal\Core\Entity\Display | core/ |
Provides a common interface for entity displays. | 5 | 4 | ||
EntityDisplayModeAddForm | class | Drupal\field_ui\Form | core/ |
Provides the add form for entity display modes. | 1 | |||
EntityDisplayModeBase | abstract class | Drupal\Core\Entity | core/ |
Base class for config entity types with settings for form and view modes. | 2 | 2 | ||
EntityDisplayModeController | class | Drupal\field_ui\Controller | core/ |
Provides methods for entity display mode routes. | ||||
EntityDisplayModeDeleteForm | class | Drupal\field_ui\Form | core/ |
Provides the delete form for entity display modes. | ||||
EntityDisplayModeEditForm | class | Drupal\field_ui\Form | core/ |
Provides the edit form for entity display modes. | ||||
EntityDisplayModeFormBase | abstract class | Drupal\field_ui\Form | core/ |
Provides the generic base class for entity display mode forms. | 2 | |||
EntityDisplayModeInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for entity types that hold form and view mode settings. | 3 | |||
EntityDisplayModeListBuilder | class | Drupal\field_ui | core/ |
Defines a class to build a listing of view mode entities. | 1 | |||
EntityDisplayPluginCollection | class | Drupal\Core\Entity | core/ |
A collection of formatters or widgets. | 2 | |||
EntityDisplayRebuilder | class | Drupal\field | core/ |
Rebuilds all form and view modes for a passed entity bundle. | 1 | |||
EntityDisplayRepository | class | Drupal\Core\Entity | core/ |
Provides a repository for entity display objects (view modes and form modes). | ||||
EntityDisplayRepositoryInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for an entity display repository. | 1 | 24 | ||
EntityDisplayWithLayoutInterface | interface | Drupal\field_layout\Display | core/ |
Provides a common interface for entity displays that have layout. | 2 | 6 | ||
EntityExists | class | Drupal\migrate\Plugin\migrate\process | core/ |
This plugin checks if a given entity exists. | ||||
EntityField | class | Drupal\views\Plugin\views\field | core/ |
A field that displays entity field data. | 5 | 5 | ||
EntityFieldDefinitionTrait | trait | Drupal\migrate | core/ |
The entity field definition trait. | 3 | |||
EntityFieldInstance | class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides destination plugin for field_config configuration entities. | ||||
EntityFieldManager | class | Drupal\Core\Entity | core/ |
Manages the discovery of entity fields. | ||||
EntityFieldManagerInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for an entity field manager. | 1 | 55 | ||
EntityFieldMethodsViaMagicReflectionExtension | class | mglaman\PHPStanDrupal\Reflection | vendor/ |
Allows some common methods on fields. | ||||
EntityFieldReflection | class | mglaman\PHPStanDrupal\Reflection | vendor/ |
Allows field access via magic methods | ||||
EntityFieldRenderer | class | Drupal\views\Entity\Render | core/ |
Renders entity fields. | 1 | |||
EntityFieldStorageConfig | class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides destination plugin for field_storage_config configuration entities. | ||||
EntityFieldsViaMagicReflectionExtension | class | mglaman\PHPStanDrupal\Reflection | vendor/ |
Allows field access via magic methods | ||||
EntityFile | class | Drupal\file\Plugin\migrate\destination | core/ |
Provides migrate destination plugin for File entities. | ||||
EntityForm | class | Drupal\Core\Entity | core/ |
Base class for entity forms. | 28 | 26 | ||
EntityFormBuilder | class | Drupal\Core\Entity | core/ |
Builds entity forms. | ||||
EntityFormBuilderInterface | interface | Drupal\Core\Entity | core/ |
Builds entity forms. | 1 | 2 |