Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x

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

Pagination

  • First page
  • Previous page
  • …
  • Page 59
  • Page 60
  • Page 61
  • Page 62
  • Page 63
  • Page 64
  • Page 65
  • Page 66
  • Page 67
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal