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 |
---|---|---|---|---|---|---|---|---|
EntityQueryType | class | mglaman\PHPStanDrupal\Type\EntityQuery | vendor/ |
3 | 2 | |||
EntityReference | class | Drupal\Core\Entity\Plugin\DataType | core/ |
Defines an 'entity_reference' data type. | 2 | |||
EntityReference | class | Drupal\views\Plugin\views\style | core/ |
EntityReference style plugin. | ||||
EntityReference | class | Drupal\views\Plugin\views\display | core/ |
The plugin that handles an EntityReference display. | ||||
EntityReference | class | Drupal\field\Plugin\migrate\field\d7 | core/ |
MigrateField plugin for Drupal 7 entity_reference fields. | ||||
EntityReference | class | Drupal\views\Plugin\views\filter | core/ |
Filters a view by entity references. | ||||
EntityReference | class | Drupal\views\Plugin\views\row | core/ |
EntityReference row plugin. | ||||
EntityReferenceArgument | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler to accept an entity reference ID value. | ||||
EntityReferenceAutocompleteTagsWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'entity_reference_autocomplete_tags' widget. | ||||
EntityReferenceAutocompleteWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'entity_reference_autocomplete' widget. | 1 | |||
EntityReferenceEntityFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'entity reference rendered entity' formatter. | 1 | |||
EntityReferenceFieldItemList | class | Drupal\Core\Field | core/ |
Defines an item list class for entity reference fields. | 1 | 3 | ||
EntityReferenceFieldItemListInterface | interface | Drupal\Core\Field | core/ |
Interface for entity reference lists of field items. | 1 | 7 | ||
EntityReferenceFieldItemNormalizer | class | Drupal\serialization\Normalizer | core/ |
Adds the file URI to embedded file entities. | 2 | |||
EntityReferenceFieldItemNormalizerTrait | trait | Drupal\serialization\Normalizer | core/ |
Converts empty reference values for entity reference items. | ||||
EntityReferenceFieldNormalizer | class | Drupal\jsonapi\Normalizer | core/ |
Normalizer class specific for entity reference field objects. | ||||
EntityReferenceFormatterBase | abstract class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Parent plugin for entity reference formatters. | 6 | 3 | ||
EntityReferenceIdFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'entity reference ID' formatter. | ||||
EntityReferenceItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'entity_reference' entity field type. | 1 | 9 | ||
EntityReferenceItemBase | abstract class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Base class for field items referencing other entities. | 1 | |||
EntityReferenceItemInterface | interface | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Interface definition for field items referencing other entities. | 1 | |||
EntityReferenceLabelFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'entity reference label' formatter. | ||||
EntityReferenceSelection | class | Drupal\Core\Entity\Attribute | core/ |
Defines an EntityReferenceSelection attribute for plugin discovery. | 11 | |||
EntityReferenceSelection | class | Drupal\Core\Entity\Annotation | core/ |
Defines an EntityReferenceSelection plugin annotation object. | ||||
EntityReferenceSupportedNewEntitiesConstraint | class | Drupal\workspaces\Plugin\Validation\Constraint | core/ |
The entity reference supported new entities constraint. | ||||
EntityReferenceSupportedNewEntitiesConstraintValidator | class | Drupal\workspaces\Plugin\Validation\Constraint | core/ |
Checks if new entities created for entity reference fields are supported. | ||||
EntityReferenceTaxonomyTermRssFormatter | class | Drupal\taxonomy\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'entity reference taxonomy term RSS' formatter. | ||||
EntityReferenceTranslationDeriver | class | Drupal\migrate_drupal\Plugin\migrate | core/ |
Deriver for entity reference field translations. | 2 | |||
EntityRepository | class | Drupal\Core\Entity | core/ |
Provides several mechanisms for retrieving entities. | ||||
EntityRepositoryInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for an entity repository. | 1 | 46 | ||
EntityRepositoryReturnTypeExtension | final class | mglaman\PHPStanDrupal\Type | vendor/ |
|||||
EntityResolverInterface | interface | Drupal\serialization\EntityResolver | core/ |
3 | ||||
EntityResolverManager | class | Drupal\Core\Entity | core/ |
Sets the entity route parameter converter options automatically. | 1 | |||
EntityResource | class | Drupal\jsonapi\Controller | core/ |
Process all entity requests. | 2 | |||
EntityResource | class | Drupal\rest\Plugin\rest\resource | core/ |
Represents entities as resources. | 1 | 1 | ||
EntityResourceAccessTrait | trait | Drupal\rest\Plugin\rest\resource | core/ |
@internal @todo Consider making public in https://www.drupal.org/node/2300677 | 1 | |||
EntityResourcePostRouteSubscriber | class | Drupal\rest\EventSubscriber | core/ |
Generates a 'create' route for an entity type if it has a REST POST route. | 2 | |||
EntityResourceValidationTrait | trait | Drupal\rest\Plugin\rest\resource | core/ |
@internal @todo Consider making public in https://www.drupal.org/node/2300677 | 2 | |||
EntityReverse | class | Drupal\views\Plugin\views\relationship | core/ |
A relationship handlers which reverse entity references. | ||||
EntityRevision | class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides entity revision destination plugin. | ||||
EntityRevisionParamConverter | class | Drupal\Core\ParamConverter | core/ |
Parameter converter for upcasting entity revision IDs to full objects. | ||||
EntityRevisionRouteEnhancer | class | Drupal\Core\Routing\Enhancer | core/ |
Adds _entity_revision to the request attributes, if possible. | ||||
EntityRevisionViewController | class | Drupal\Core\Entity\Controller | core/ |
Defines a controller to view an entity revision. | 1 | |||
EntityRouteAlterSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Registers the 'type' of route parameter names that match an entity type. | ||||
EntityRouteEnhancer | class | Drupal\Core\Entity\Enhancer | core/ |
Enhances an entity form route with the appropriate controller. | ||||
EntityRouteProviderInterface | interface | Drupal\Core\Entity\Routing | core/ |
Allows entity types to provide routes. | 7 | 5 | ||
EntityRouteProviderSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Ensures that routes can be provided by entity types. | ||||
EntityRow | class | Drupal\views\Plugin\views\row | core/ |
Generic entity row plugin to provide a common base for all entity types. | 2 | 2 | ||
EntitySchemaSubscriber | class | Drupal\workspaces\EventSubscriber | core/ |
Defines a class for listening to entity schema changes. | 2 | |||
EntitySearchPage | class | Drupal\search\Plugin\migrate\destination | core/ |
Migrate destination for search page. |