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

Pagination

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