Classes, traits, and interfaces - 10.3.x - 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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
EntityAutocompleteMatcherInterface | interface | Drupal\Core\Entity | core/ |
1 | 1 | |||
EntityAutocompleteTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests the autocomplete functionality. | ||||
EntityBase | abstract class | Drupal\Core\Entity | core/ |
Defines a base entity class. | 8 | 7 | ||
EntityBaseFieldOverride | class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides entity base field override destination plugin. | ||||
EntityBaseTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests the functionality provided by \Drupal\Core\Entity\EntityBase. | ||||
EntityBaseTest | class | Drupal\Tests\Core\Entity | core/ |
|||||
EntityBaseTest | class | Drupal\Tests\Core\Entity\KeyValueStore | core/ |
|||||
EntityBlock | class | Drupal\block\Plugin\migrate\destination | core/ |
Migrate destination for block entity. | ||||
EntityBundle | class | Drupal\Core\Entity\Plugin\Condition\Deriver | core/ |
Deriver that creates a condition for each entity type with bundles. | 1 | |||
EntityBundle | class | Drupal\Core\Entity\Plugin\Condition | core/ |
Provides the 'Entity Bundle' condition. | ||||
EntityBundleConditionTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests that entity bundle conditions works properly. | ||||
EntityBundleExistsConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Checks if a bundle exists on a certain content entity type. | ||||
EntityBundleExistsConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validates that a bundle exists on a certain content entity type. | ||||
EntityBundleExistsConstraintValidatorTest | class | Drupal\KernelTests\Core\Entity | core/ |
@group Entity @group Validation | ||||
EntityBundleFieldTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests adding a custom bundle field. | ||||
EntityBundleListCacheTest | class | Drupal\FunctionalTests\Entity | core/ |
Tests that bundle tags are invalidated when entities change. | ||||
EntityBundleListener | class | Drupal\Core\Entity | core/ |
Reacts to entity bundle CRUD on behalf of the Entity system. | 2 | |||
EntityBundleListenerInterface | interface | Drupal\Core\Entity | core/ |
An interface for reacting to entity bundle creation and deletion. | 2 | 1 | ||
EntityBundleListenerTest | class | Drupal\KernelTests\Core\Entity | core/ |
@coversDefaultClass \Drupal\Core\Entity\EntityBundleListener[[api-linebreak]] | ||||
EntityBundleRouteEnhancer | class | Drupal\Core\Entity\Enhancer | core/ |
Sets the bundle parameter for routes with the _field_ui option. | 2 | |||
EntityCacheTagsTestBase | abstract class | Drupal\Tests\system\Functional\Entity | core/ |
Provides helper methods for Entity cache tags tests. | 3 | 2 | ||
EntityChangedActionDeriver | class | Drupal\Core\Action\Plugin\Action\Derivative | core/ |
Provides an action deriver that finds entity types of EntityChangedInterface. | 2 | |||
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 | 20 | ||
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 | |||
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. | ||||
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/ |
@coversDefaultClass \Drupal\jsonapi\Query\EntityConditionGroup[[api-linebreak]] @group jsonapi | ||||
EntityConditionTest | class | Drupal\Tests\jsonapi\Unit\Query | core/ |
@coversDefaultClass \Drupal\jsonapi\Query\EntityCondition[[api-linebreak]] @group jsonapi | ||||
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. | 7 | 6 | ||
EntityConstraintViolationList | class | Drupal\Core\Entity | core/ |
Implements an entity constraint violation list. | 2 | |||
EntityConstraintViolationListInterface | interface | Drupal\Core\Entity | core/ |
Interface for the result of entity validation. | 1 | 10 | ||
EntityConstraintViolationListTest | class | Drupal\Tests\Core\Entity | core/ |
@coversDefaultClass \Drupal\Core\Entity\EntityConstraintViolationList[[api-linebreak]] @group entity | ||||
EntityContentBase | class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides destination class for all content entities lacking a specific class. | 7 | 8 | ||
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/ |
@group migrate_drupal | ||||
EntityContentComplete | 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/ |
@coversDefaultClass \Drupal\Core\Plugin\Context\EntityContextDefinition[[api-linebreak]] @group Plugin | ||||
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. | 1 | |||
EntityConverter | class | Drupal\Core\ParamConverter | core/ |
Parameter converter for upcasting entity IDs to full objects. | 2 | 2 | 2 | |
EntityConverterLatestRevisionTest | class | Drupal\KernelTests\Core\ParamConverter | core/ |
Tests the entity converter when the "load_latest_revision" flag is set. |
Pagination
- Previous page
- Page 55
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.