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 |
---|---|---|---|---|---|---|---|---|
EntityShortcutSet | class | Drupal\shortcut\Plugin\migrate\destination | core/ |
Migration destination for shortcut set entity. | ||||
EntityStorageBase | abstract class | Drupal\Core\Entity | core/ |
A base entity storage class. | 3 | 2 | ||
EntityStorageDynamicReturnTypeExtension | class | mglaman\PHPStanDrupal\Type\EntityStorage | vendor/ |
|||||
EntityStorageException | class | Drupal\Core\Entity | core/ |
Defines an exception thrown when storage operations fail. | 2 | 9 | ||
EntityStorageInterface | interface | Drupal\Core\Entity | core/ |
Defines the interface for entity storage classes. | 6 | 109 | ||
EntityStorageSchemaInterface | interface | Drupal\Core\Entity\Schema | core/ |
Defines the interface for entity storage schema handler classes. | 1 | 1 | ||
EntityStorageType | class | mglaman\PHPStanDrupal\Type\EntityStorage | vendor/ |
2 | 2 | |||
EntityTaxonomyVocabulary | class | Drupal\taxonomy\Plugin\migrate\destination | core/ |
Migration destination for taxonomy vocabulary. | ||||
EntityTranslationRendererBase | abstract class | Drupal\views\Entity\Render | core/ |
Defines a base class for entity translation renderers. | 3 | |||
EntityTranslationRenderTrait | trait | Drupal\views\Entity\Render | core/ |
Trait used to instantiate the view's entity translation renderer. | 6 | |||
EntityTranslationSettings | class | Drupal\content_translation\Plugin\migrate\source\d7 | core/ |
Drupal 7 Entity Translation settings (variables) from database. | ||||
EntityType | class | Drupal\Core\Entity\Attribute | core/ |
Defines an entity type for plugin discovery. | 2 | 1 | ||
EntityType | class | Drupal\Core\Entity | core/ |
Provides an implementation of an entity type and its metadata. | 2 | 3 | ||
EntityType | class | Drupal\Core\Entity\Annotation | core/ |
Defines an Entity type annotation object. | 2 | |||
EntityTypeBundleInfo | class | Drupal\Core\Entity | core/ |
Provides discovery and retrieval of entity type bundles. | ||||
EntityTypeBundleInfoInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for an entity type bundle info. | 1 | 53 | ||
EntityTypeConstraint | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Checks if a value is a valid entity type. | ||||
EntityTypeConstraintValidator | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Validates the EntityType constraint. | ||||
EntityTypeEvent | class | Drupal\Core\Entity | core/ |
Defines a base class for all entity type events. | ||||
EntityTypeEvents | final class | Drupal\Core\Entity | core/ |
Contains all events thrown while handling entity types. | ||||
EntityTypeEventSubscriberTrait | trait | Drupal\Core\Entity | core/ |
Helper methods for EntityTypeListenerInterface. | 2 | |||
EntityTypeIdLengthException | class | Drupal\Core\Entity\Exception | core/ |
Defines an exception thrown when an entity ID is too long. | 1 | |||
EntityTypeInfo | class | Drupal\workspaces | core/ |
Manipulates entity type information. | 1 | |||
EntityTypeInfo | class | Drupal\content_moderation | core/ |
Manipulates entity type information. | 1 | |||
EntityTypeInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for an entity type and its metadata. | 3 | 145 | ||
EntityTypeListener | class | Drupal\Core\Entity | core/ |
Reacts to entity type CRUD on behalf of the Entity system. | ||||
EntityTypeListenerInterface | interface | Drupal\Core\Entity | core/ |
Defines an interface for reacting to entity type creation, deletion, and updates. | 4 | 3 | ||
EntityTypeManager | class | Drupal\Core\Entity | core/ |
Manages entity type plugin definitions. | ||||
EntityTypeManagerGetStorageDynamicReturnTypeExtension | class | mglaman\PHPStanDrupal\Type | vendor/ |
|||||
EntityTypeManagerInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for entity type managers. | 1 | 276 | ||
EntityTypeRepository | class | Drupal\Core\Entity | core/ |
Provides helper methods for loading entity types. | ||||
EntityTypeRepositoryInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for helper methods for loading entity types. | 1 | 3 | ||
EntityUntranslatableFieldsConstraint | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Validation constraint for the entity changed timestamp. | ||||
EntityUntranslatableFieldsConstraintValidator | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Validates the EntityChanged constraint. | ||||
EntityUser | class | Drupal\user\Plugin\migrate\destination | core/ |
Provides a destination plugin for migrating user entities. | ||||
EntityUserRole | class | Drupal\user\Plugin\migrate\destination | core/ |
Provides a destination plugin for migrating user role entities. | ||||
EntityUuidConverter | class | Drupal\jsonapi\ParamConverter | core/ |
Parameter converter for upcasting entity UUIDs to full objects. | 2 | |||
EntityValidationException | class | Drupal\migrate\Exception | core/ |
To throw when an entity generated during the import is not valid. | 1 | |||
EntityValidationTrait | trait | Drupal\jsonapi\Entity | core/ |
Provides a method to validate an entity. | 2 | |||
EntityViewBuilder | class | Drupal\Core\Entity | core/ |
Base class for entity view builders. | 6 | 8 | ||
EntityViewBuilderInterface | interface | Drupal\Core\Entity | core/ |
Defines an interface for entity view builders. | 1 | 1 | ||
EntityViewController | class | Drupal\Core\Entity\Controller | core/ |
Defines a generic controller to render a single entity. | 2 | 2 | ||
EntityViewDisplay | class | Drupal\Core\Entity\Entity | core/ |
Configuration entity. | 2 | 10 | ||
EntityViewDisplayAccessControlHandler | class | Drupal\Core\Entity\Entity\Access | core/ |
Provides an entity access control handler for displays. | 1 | |||
EntityViewDisplayEditForm | class | Drupal\field_ui\Form | core/ |
Edit form for the EntityViewDisplay entity type. | 2 | 2 | ||
EntityViewDisplayInterface | interface | Drupal\Core\Entity\Display | core/ |
Provides a common interface for entity view displays. | 1 | 18 | ||
EntityViewMode | class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides entity view mode destination plugin. | ||||
EntityViewMode | class | Drupal\Core\Entity\Entity | core/ |
Defines the entity view mode configuration entity class. | 1 | |||
EntityViewModeInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface defining an entity view mode entity type. | 1 | 2 | ||
EntityViewsData | class | Drupal\views | core/ |
Provides generic views integration for entities. | 7 | 9 |