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 |
---|---|---|---|---|---|---|---|---|
EntityFormDisplay | class | Drupal\Core\Entity\Entity | core/ |
Configuration entity. | 1 | 8 | ||
EntityFormDisplayAccessControlHandler | class | Drupal\Core\Entity\Entity\Access | core/ |
Provides an entity access control handler for form displays. | 1 | |||
EntityFormDisplayEditForm | class | Drupal\field_ui\Form | core/ |
Edit form for the EntityFormDisplay entity type. | 1 | 1 | ||
EntityFormDisplayInterface | interface | Drupal\Core\Entity\Display | core/ |
Provides a common interface for entity form displays. | 1 | 8 | ||
EntityFormInterface | interface | Drupal\Core\Entity | core/ |
Defines an interface for entity form classes. | 4 | 4 | ||
EntityFormMode | class | Drupal\Core\Entity\Entity | core/ |
Defines the entity form mode configuration entity class. | ||||
EntityFormModeAddForm | class | Drupal\field_ui\Form | core/ |
Provides the add form for entity display modes. | ||||
EntityFormModeInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface defining an entity form mode entity type. | 1 | 2 | ||
EntityFormModeListBuilder | class | Drupal\field_ui | core/ |
Defines a class to build a listing of form mode entities. | ||||
EntityHandlerBase | abstract class | Drupal\Core\Entity | core/ |
Provides a base class for entity handlers. | 4 | |||
EntityHandlerInterface | interface | Drupal\Core\Entity | core/ |
Defines an interface for entity handlers. | 19 | 16 | ||
EntityHasFieldConstraint | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Checks if a value is an entity that has a specific field. | ||||
EntityHasFieldConstraintValidator | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Validates the EntityHasField constraint. | ||||
EntityImageStyle | class | Drupal\image\Plugin\migrate\destination | core/ |
Entity image style destination. | ||||
EntityInterface | interface | Drupal\Core\Entity | core/ |
Defines a common interface for all entity objects. | 10 | 216 | ||
EntityLabel | class | Drupal\views\Plugin\views\field | core/ |
Field handler to display entity label optionally linked to entity page. | ||||
EntityLastInstalledSchemaRepository | class | Drupal\Core\Entity | core/ |
Provides a repository for installed entity definitions. | ||||
EntityLastInstalledSchemaRepositoryInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for an installed entity definition repository. | 1 | 3 | ||
EntityLink | class | Drupal\comment\Plugin\views\field | core/ |
Handler for showing comment module's entity links. | ||||
EntityLink | class | Drupal\views\Plugin\views\field | core/ |
Field handler to present a link to an entity. | 3 | 1 | ||
EntityLinkDelete | class | Drupal\views\Plugin\views\field | core/ |
Field handler to present a link to delete an entity. | ||||
EntityLinkEdit | class | Drupal\views\Plugin\views\field | core/ |
Field handler to present a link to edit an entity. | ||||
EntityListBuilder | class | Drupal\Core\Entity | core/ |
Defines a generic implementation to build a listing of entities. | 8 | 12 | ||
EntityListBuilderInterface | interface | Drupal\Core\Entity | core/ |
Defines an interface to build entity listings. | 2 | 1 | ||
EntityListController | class | Drupal\Core\Entity\Controller | core/ |
Defines a generic controller to list entities. | 2 | 2 | ||
EntityMalformedException | class | Drupal\Core\Entity | core/ |
Defines an exception thrown when a malformed entity is passed. | 4 | |||
EntityMethod | final class | Drupal\Core\Config\Action\Plugin\ConfigAction | core/ |
Makes config entity methods with the ActionMethod attribute into actions. | ||||
EntityMethodDeriver | final class | Drupal\Core\Config\Action\Plugin\ConfigAction\Deriver | core/ |
Derives config action methods from attributed config entity methods. | 1 | |||
EntityMethodException | final class | Drupal\Core\Config\Action | core/ |
@internal This API is experimental. | 2 | |||
EntityModerationForm | class | Drupal\content_moderation\Form | core/ |
The EntityModerationForm provides a simple UI for changing moderation state. | 1 | |||
EntityModerationRouteProvider | class | Drupal\content_moderation\Entity\Routing | core/ |
Dynamic route provider for the Content moderation module. | 1 | |||
EntityNodeType | class | Drupal\node\Plugin\migrate\destination | core/ |
Migration destination for node type entity. | ||||
EntityNormalizer | class | Drupal\serialization\Normalizer | core/ |
Normalizes/denormalizes Drupal entity objects into an array structure. | 2 | 2 | ||
EntityOperations | class | Drupal\views\Plugin\views\field | core/ |
Renders all operations links for an entity. | ||||
EntityOperations | class | Drupal\content_moderation | core/ |
Defines a class for reacting to entity events. | 1 | |||
EntityOperations | class | Drupal\workspaces | core/ |
Defines a class for reacting to entity events. | 1 | |||
EntityOwnerInterface | interface | Drupal\user | core/ |
Defines a common interface for entities that have an owner. | 6 | 14 | ||
EntityOwnerTrait | trait | Drupal\user | core/ |
Provides a trait for entities that have an owner. | 6 | |||
EntityPermissionsForm | class | Drupal\user\Form | core/ |
Provides the permissions administration form for a bundle. | ||||
EntityPermissionsRouteProvider | class | Drupal\user\Entity | core/ |
Provides routes for the entity permissions form. | 1 | 6 | ||
EntityPermissionsRouteProviderWithCheck | in drupal:11.1.0 and is removed from drupal:12.0.0. Use EntityPermissionsRouteProvider instead. |
class | Drupal\user\Entity | core/ |
Provides routes for the entity permissions form with a custom access check. | |||
EntityPublishedActionDeriver | class | Drupal\Core\Action\Plugin\Action\Derivative | core/ |
Provides an action deriver that finds publishable entity types. | 2 | |||
EntityPublishedInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for access to an entity's published state. | 8 | 19 | ||
EntityPublishedTrait | trait | Drupal\Core\Entity | core/ |
Provides a trait for published status. | 2 | |||
EntityQueryAccessCheckDynamicReturnTypeExtension | class | mglaman\PHPStanDrupal\Type\EntityQuery | vendor/ |
|||||
EntityQueryCountType | final class | mglaman\PHPStanDrupal\Type\EntityQuery | vendor/ |
Type used to represent an entity query instance as count query. | ||||
EntityQueryDynamicReturnTypeExtension | class | mglaman\PHPStanDrupal\Type\EntityQuery | vendor/ |
|||||
EntityQueryExecuteWithoutAccessCheckCountType | final class | mglaman\PHPStanDrupal\Type\EntityQuery | vendor/ |
1 | ||||
EntityQueryExecuteWithoutAccessCheckType | final class | mglaman\PHPStanDrupal\Type\EntityQuery | vendor/ |
1 | ||||
EntityQueryHasAccessCheckRule | final class | mglaman\PHPStanDrupal\Rules\Drupal\EntityQuery | vendor/ |
@implements Rule<Node\Expr\MethodCall> |