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 |
|---|---|---|---|---|---|---|---|---|
| Entity | class | Drupal\views\Plugin\views\argument_validator | core/ |
Defines an argument validator plugin for each entity type. | 2 | 3 | ||
| Entity | class | Drupal\views\Plugin\views\area | core/ |
Provides an area handler which renders an entity in a certain view mode. | 1 | |||
| Entity | class | Drupal\Tests\Component\Annotation\Doctrine\Ticket | core/ |
|||||
| Entity | class | core/ |
This class is a near-copy of tests/Doctrine/Tests/Common/Annotations/Ticket/DCOM58Entity.php, which is part of the Doctrine project: <http://www.doctrine-project.org>. It was copied from version 1.2.7. | |||||
| EntityAccess | class | Drupal\workspaces\Hook | core/ |
Defines a class for reacting to entity access control hooks. | ||||
| EntityAccessCheck | class | Drupal\Core\Entity | core/ |
Provides a generic access checker for entities. | 1 | 2 | ||
| EntityAccessChecker | class | Drupal\jsonapi\Access | core/ |
Checks access to entities. | 2 | 2 | ||
| EntityAccessCheckTest | class | Drupal\Tests\Core\Entity | core/ |
Unit test of entity access checking system. | ||||
| EntityAccessControlHandler | class | Drupal\Core\Entity | core/ |
Defines a default implementation for entity access control handler. | 35 | 40 | ||
| EntityAccessControlHandlerInterface | interface | Drupal\Core\Entity | core/ |
Defines an interface for entity access control handlers. | 2 | 1 | ||
| EntityAccessControlHandlerTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests the entity access control handler. | ||||
| EntityAccessDeniedHttpException | class | Drupal\jsonapi\Exception | core/ |
Enhances the access denied exception with information about the entity. | 8 | |||
| EntityAccessDeniedHttpExceptionNormalizer | class | Drupal\jsonapi\Normalizer | core/ |
Normalizes an EntityAccessDeniedException. | 2 | |||
| EntityActionBase | abstract class | Drupal\Core\Action\Plugin\Action | core/ |
Base class for entity-based actions. | 4 | |||
| EntityActionDeriverBase | abstract class | Drupal\Core\Action\Plugin\Action\Derivative | core/ |
Provides a base action for each entity type with specific interfaces. | 3 | |||
| EntityAdapter | class | Drupal\Core\Entity\Plugin\DataType | core/ |
Defines the "entity" data type. | 1 | 10 | ||
| EntityAdapterUnitTest | class | Drupal\Tests\Core\Entity\TypedData | core/ |
Tests Drupal\Core\Entity\Plugin\DataType\EntityAdapter. | ||||
| EntityAddUITest | class | Drupal\Tests\system\Functional\Entity | core/ |
Tests the /add and /add/{type} controllers. | ||||
| EntityAliasTest | class | Drupal\Tests\path_alias\Kernel | core/ |
Tests path alias on entities. | ||||
| EntityApiTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests basic CRUD functionality. | ||||
| EntityArgument | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler to accept an entity ID value. | 5 | 5 | ||
| EntityArgumentTest | class | Drupal\Tests\views\Functional\Plugin | core/ |
Tests the handler of the view: entity target argument. | ||||
| EntityArgumentUpdateTest | class | Drupal\Tests\views\Functional\Update | core/ |
Tests the upgrade path for converting numeric arguments to entity_target_id. | ||||
| EntityAutocomplete | class | Drupal\Core\Entity\Element | core/ |
Provides an entity autocomplete form element. | 6 | |||
| EntityAutocompleteController | class | Drupal\system\Controller | core/ |
Defines a route controller for entity autocomplete form elements. | 1 | |||
| EntityAutocompleteElementFormTest | class | Drupal\KernelTests\Core\Entity\Element | core/ |
Tests the EntityAutocomplete Form API element. | ||||
| EntityAutocompleteMatcher | class | Drupal\Core\Entity | core/ |
Matcher class to get autocompletion results for entity reference. | 2 | |||
| EntityAutocompleteMatcherInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for the entity autocomplete matcher. | 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. | 7 | 10 | ||
| 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\KeyValueStore | core/ |
A simple entity class for testing key value entity storage. | ||||
| 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. | ||||
| EntityBundleEntityTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests the getBundleEntity() method. | ||||
| EntityBundleExistsConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Checks if a bundle exists on a certain content entity type. | 1 | |||
| EntityBundleExistsConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validates that a bundle exists on a certain content entity type. | 1 | |||
| EntityBundleExistsConstraintValidatorTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests Entity Bundle Exists Constraint Validator. | ||||
| EntityBundleFieldTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests adding a custom bundle field. | ||||
| EntityBundleInfoAlter | final class | Drupal\media_test_oembed\Hook | core/ |
Alters media bundles. | 1 | |||
| 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. | 1 | 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/ |
Tests Drupal\Core\Entity\EntityBundleListener. | ||||
| 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 |
Pagination
- Previous page
- Page 59
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.