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 |
|---|---|---|---|---|---|---|---|---|
| EntityRevisionsTest | class | Drupal\Tests\system\Functional\Entity | core/ |
Tests modifying an entity with revisions. | ||||
| EntityRevisionTest | class | Drupal\Tests\migrate\Unit\destination | core/ |
Tests entity revision destination. | ||||
| EntityRevisionTest | class | Drupal\Tests\migrate\Unit\Plugin\migrate\destination | core/ |
Tests entity revision destination functionality. | ||||
| EntityRevisionTest | class | Drupal\Tests\migrate\Kernel\Plugin | core/ |
Tests the EntityRevision destination plugin. | ||||
| EntityRevisionTestDestination | class | Drupal\Tests\migrate\Unit\Plugin\migrate\destination | core/ |
Stub class for testing EntityRevision methods. | ||||
| EntityRevisionTranslationTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests proper revision propagation of entities. | ||||
| EntityRevisionViewController | class | Drupal\Core\Entity\Controller | core/ |
Defines a controller to view an entity revision. | 2 | 1 | ||
| EntityRouteAlterSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Registers the 'type' of route parameter names that match an entity type. | 2 | |||
| EntityRouteEnhancer | class | Drupal\Core\Entity\Enhancer | core/ |
Enhances an entity form route with the appropriate controller. | 1 | 2 | ||
| EntityRouteEnhancerTest | class | Drupal\Tests\Core\Entity\Enhancer | core/ |
Tests Drupal\Core\Entity\Enhancer\EntityRouteEnhancer. | ||||
| EntityRouteHelper | class | Drupal\navigation | core/ |
Helper service to detect entity routes. | 2 | 2 | ||
| EntityRouteProviderInterface | interface | Drupal\Core\Entity\Routing | core/ |
Allows entity types to provide routes. | 6 | 4 | ||
| EntityRouteProviderSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Ensures that routes can be provided by entity types. | 2 | |||
| EntityRow | class | Drupal\views\Plugin\views\row | core/ |
Generic entity row plugin to provide a common base for all entity types. | 2 | 2 | ||
| EntitySchemaSubscriber | class | Drupal\entity_test_update\EventSubscriber | core/ |
Defines a class for listening to entity schema changes. | 2 | |||
| EntitySchemaSubscriber | class | Drupal\workspaces\EventSubscriber | core/ |
Defines a class for listening to entity schema changes. | 2 | |||
| EntitySchemaTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests the default entity storage schema handler. | ||||
| EntitySchemaTestHooks | class | Drupal\entity_schema_test\Hook | core/ |
Hook implementations for entity_schema_test. | ||||
| EntitySearchPage | class | Drupal\search\Plugin\migrate\destination | core/ |
Migrate destination for search page. | ||||
| EntitySerializationTest | class | Drupal\Tests\serialization\Kernel | core/ |
Tests that entities can be serialized to supported core formats. | ||||
| EntitySerializationTestHooks | class | Drupal\entity_serialization_test\Hook | core/ |
Hook implementations for entity_serialization_test. | ||||
| EntitySerializedField | class | Drupal\entity_test\Entity | core/ |
Defines a test class for testing fields with a serialized column. | 1 | |||
| EntityShortcutSet | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
class | Drupal\shortcut\Plugin\migrate\destination | core/ |
Migration destination for shortcut set entity. | |||
| EntityStateChangeValidationTest | class | Drupal\Tests\content_moderation\Kernel | core/ |
Tests Drupal\content_moderation\Plugin\Validation\Constraint\ModerationStateConstraintValidator. | ||||
| EntityStorageBase | abstract class | Drupal\Core\Entity | core/ |
A base entity storage class. | 4 | 4 | ||
| EntityStorageBaseTest | class | Drupal\Tests\Core\Entity | core/ |
Tests Drupal\Core\Entity\EntityStorageBase. | ||||
| EntityStorageException | class | Drupal\Core\Entity | core/ |
Defines an exception thrown when storage operations fail. | 2 | 31 | ||
| EntityStorageInterface | interface | Drupal\Core\Entity | core/ |
Defines the interface for entity storage classes. | 6 | 147 | ||
| EntityStorageSchemaInterface | interface | Drupal\Core\Entity\Schema | core/ |
Defines the interface for entity storage schema handler classes. | 1 | 1 | ||
| EntityTaxonomyVocabulary | class | Drupal\taxonomy\Plugin\migrate\destination | core/ |
Migration destination for taxonomy vocabulary. | ||||
| EntityTest | class | Drupal\entity_test\Entity | core/ |
Defines the test entity class. | 43 | 170 | ||
| EntityTest | class | Drupal\Tests\views\Unit\Plugin\argument_validator | core/ |
Tests Drupal\views\Plugin\views\argument_validator\Entity. | ||||
| EntityTest | class | Drupal\Tests\views\Unit\Plugin\area | core/ |
Tests Drupal\views\Plugin\views\area\Entity. | ||||
| EntityTestAccessControlHandler | class | Drupal\entity_test | core/ |
Defines the access control handler for the test entity type. | 24 | |||
| EntityTestAddPage | class | Drupal\entity_test\Entity | core/ |
Test entity class routes. | ||||
| EntityTestAdminRoutes | class | Drupal\entity_test\Entity | core/ |
Defines a test entity type with administrative routes. | 1 | |||
| EntityTestAmbiguousBundleClass | class | Drupal\entity_test_bundle_class\Entity | core/ |
An ambiguous bundle class that is a subclass of two different entity classes. | 2 | |||
| EntityTestAttributeBundleClassHooks | class | Drupal\entity_test_attribute_bundle_class\Hook | core/ |
Hook implementations for entity_test_attribute_bundle_class. | ||||
| EntityTestBase | abstract class | Drupal\Tests\migrate\Unit\Plugin\migrate\destination | core/ |
Base test class for entity migration destination functionality. | 2 | |||
| EntityTestBaseFieldDisplay | class | Drupal\entity_test\Entity | core/ |
Defines a test entity class for base fields display. | 3 | |||
| EntityTestBundle | class | Drupal\entity_test\Entity | core/ |
Defines the Test entity bundle configuration entity. | 28 | |||
| EntityTestBundleClass | class | Drupal\entity_test_bundle_class\Entity | core/ |
The bundle class for the bundle_class bundle of the entity_test entity. | 2 | |||
| EntityTestBundleClassA | class | Drupal\entity_test_attribute_bundle_class\Entity | core/ |
The bundle class for the bundle_class_a bundle of the entity_test entity. | 1 | |||
| EntityTestBundleClassB | class | Drupal\entity_test_attribute_bundle_class\Entity | core/ |
The bundle class for the bundle_class_b bundle of the entity_test entity. | 1 | |||
| EntityTestBundleClassHooks | class | Drupal\entity_test_bundle_class\Hook | core/ |
Hook implementations for entity_test_bundle_class. | ||||
| EntityTestBundleClassOverrideA | class | Drupal\entity_test_attribute_bundle_class\Entity | core/ |
Overrides bundle class for the entity_test entity type bundle_class_a bundle. | 1 | |||
| EntityTestBundleClassOverrideB | class | Drupal\entity_test_attribute_bundle_class\Entity | core/ |
Overrides bundle class for the entity_test entity type bundle_class_b bundle. | 1 | |||
| EntityTestBundleJsonAnonTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
Tests EntityTest Bundle Json Anon. | ||||
| EntityTestBundleJsonBasicAuthTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
Tests EntityTest Bundle Json Basic Auth. | ||||
| EntityTestBundleJsonCookieTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
Tests EntityTest Bundle Json Cookie. |
Pagination
- Previous page
- Page 65
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.