Classes, traits, and interfaces - main - drupal
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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| EntityChangedConstraint | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Validation constraint for the entity changed timestamp. | 1 | 1 | ||
| EntityChangedConstraintValidator | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Validates the EntityChanged constraint. | 1 | 1 | ||
| EntityChangedInterface | interface | Drupal\Core\Entity | core/ |
Defines an interface for entity change timestamp tracking. | 12 | 21 | ||
| EntityChangedTrait | trait | Drupal\Core\Entity | core/ |
Provides a trait for accessing changed time. | 6 | |||
| EntityChangesDetectionTrait | trait | Drupal\Core\Entity | core/ |
Provides helper methods to detect changes in an entity object. | 2 | |||
| EntityClone | final class | Drupal\Core\Config\Action\Plugin\ConfigAction | core/ |
@internal This API is experimental. | 1 | |||
| EntityCloneConfigActionTest | class | Drupal\KernelTests\Core\Recipe | core/ |
Tests Entity Clone Config Action. | ||||
| EntityComment | class | Drupal\comment\Plugin\migrate\destination | core/ |
Comment entity destination. | ||||
| EntityCommentType | class | Drupal\comment\Plugin\migrate\destination | core/ |
Comment type destination. | ||||
| EntityComputedFieldTest | class | Drupal\Tests\system\Functional\Entity | core/ |
Tests that entities with computed fields work correctly. | ||||
| EntityConcurrentRenderTest | class | Drupal\FunctionalTests\Entity | core/ |
Tests that the same entity can be rendered multiple times on a page. | ||||
| EntityCondition | class | Drupal\jsonapi\Query | core/ |
A condition object for the EntityQuery. | 2 | |||
| EntityConditionGroup | class | Drupal\jsonapi\Query | core/ |
A condition group for the EntityQuery. | 2 | |||
| EntityConditionGroupTest | class | Drupal\Tests\jsonapi\Unit\Query | core/ |
Tests Drupal\jsonapi\Query\EntityConditionGroup. | ||||
| EntityConditionTest | class | Drupal\Tests\jsonapi\Unit\Query | core/ |
Tests Drupal\jsonapi\Query\EntityCondition. | ||||
| EntityConfigBase | class | Drupal\migrate\Plugin\migrate\destination | core/ |
Base destination class for importing configuration entities. | 13 | 10 | ||
| EntityConfirmFormBase | abstract class | Drupal\Core\Entity | core/ |
Provides a generic base class for an entity-based confirmation form. | 8 | 7 | ||
| EntityConstraintViolationList | class | Drupal\Core\Entity | core/ |
Implements an entity constraint violation list. | 3 | |||
| EntityConstraintViolationListInterface | interface | Drupal\Core\Entity | core/ |
Interface for the result of entity validation. | 1 | 11 | ||
| EntityConstraintViolationListTest | class | Drupal\Tests\Core\Entity | core/ |
Tests Drupal\Core\Entity\EntityConstraintViolationList. | ||||
| EntityContentBase | class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides destination class for all content entities lacking a specific class. | 6 | 7 | ||
| EntityContentBaseTest | class | Drupal\Tests\migrate\Unit\Plugin\migrate\destination | core/ |
Tests base entity migration destination functionality. | ||||
| EntityContentBaseTest | class | Drupal\Tests\migrate_drupal\Kernel\d6 | core/ |
Tests Entity Content Base. | ||||
| EntityContentComplete | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides a destination for migrating the entire entity revision table. | 2 | ||
| EntityContext | class | Drupal\Core\Plugin\Context | core/ |
Class to provide a specific entity context. | 17 | |||
| EntityContextDefinition | class | Drupal\Core\Plugin\Context | core/ |
Defines a class to provide entity context definitions. | 24 | |||
| EntityContextDefinitionIsSatisfiedTest | class | Drupal\Tests\Core\Plugin\Context | core/ |
Tests Drupal\Core\Plugin\Context\EntityContextDefinition. | ||||
| EntityContextTypedDataTest | class | Drupal\KernelTests\Core\Plugin | core/ |
Tests the interaction between entity context and typed data. | ||||
| EntityController | class | Drupal\Core\Entity\Controller | core/ |
Provides the add-page and title callbacks for entities. | 2 | |||
| EntityControllerTest | class | Drupal\Tests\Core\Entity\Controller | core/ |
Tests EntityController. | ||||
| EntityConverter | class | Drupal\Core\ParamConverter | core/ |
Parameter converter for upcasting entity IDs to full objects. | 2 | 4 | 2 | |
| EntityConverterLatestRevisionTest | class | Drupal\KernelTests\Core\ParamConverter | core/ |
Tests the entity converter when the "load_latest_revision" flag is set. | ||||
| EntityConverterTest | class | Drupal\KernelTests\Core\ParamConverter | core/ |
Tests the entity param converter. | ||||
| EntityConverterTest | class | Drupal\Tests\Core\ParamConverter | core/ |
Tests Drupal\Core\ParamConverter\EntityConverter. | ||||
| EntityCreate | final class | Drupal\Core\Config\Action\Plugin\ConfigAction | core/ |
@internal This API is experimental. | ||||
| EntityCreateAccessCheck | class | Drupal\Core\Entity | core/ |
Defines an access checker for entity creation. | 1 | 2 | ||
| EntityCreateAccessCheckTest | class | Drupal\Tests\Core\Entity | core/ |
Tests Drupal\Core\Entity\EntityCreateAccessCheck. | ||||
| EntityCreateAccessCustomCidTest | class | Drupal\Tests\Core\Entity\Access | core/ |
Tests entity access control handler custom internal cache ID. | ||||
| EntityCreateAnyAccessCheck | class | Drupal\Core\Entity | core/ |
Defines an access checker for creating an entity of any bundle. | 2 | |||
| EntityCreateDeriver | final class | Drupal\Core\Config\Action\Plugin\ConfigAction\Deriver | core/ |
@internal This API is experimental. | 1 | |||
| EntityCrudHookTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests entity CRUD via hooks. | ||||
| EntityDataDefinition | class | Drupal\Core\Entity\TypedData | core/ |
A typed data definition class for describing entities. | 6 | |||
| EntityDataDefinitionInterface | interface | Drupal\Core\Entity\TypedData | core/ |
Interface for typed data entity definitions. | 1 | 4 | ||
| EntityDateFormat | class | Drupal\system\Plugin\migrate\destination | core/ |
Migration destination for date format entity. | ||||
| EntityDecoupledTranslationRevisionsTest | class | Drupal\KernelTests\Core\Entity | core/ |
Test decoupled translation revisions. | ||||
| EntityDefaultLanguageTest | class | Drupal\Tests\language\Kernel | core/ |
Tests default language code is properly generated for entities. | ||||
| EntityDefinitionTestTrait | trait | Drupal\Tests\system\Functional\Entity\Traits | core/ |
Provides some test methods used to update existing entity definitions. | 11 | |||
| EntityDefinitionUpdateManager | class | Drupal\Core\Entity | core/ |
Manages entity definition updates. | 4 | 2 | ||
| EntityDefinitionUpdateManagerInterface | interface | Drupal\Core\Entity | core/ |
Defines an interface for managing entity definition updates. | 1 | 10 | ||
| EntityDefinitionUpdateMultipleTypesTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests EntityDefinitionUpdateManager functionality. |
Pagination
- Previous page
- Page 60
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.