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 |
|---|---|---|---|---|---|---|---|---|
| EntityTestTranslatableNoUISkip | class | Drupal\content_translation_test\Entity | core/ |
Defines the test entity class. | 1 | |||
| EntityTestTranslatableUISkip | class | Drupal\content_translation_test\Entity | core/ |
Defines the test entity class. | 1 | |||
| EntityTestUniqueConstraint | class | Drupal\entity_test\Entity | core/ |
Defines a test entity class for unique constraint. | 1 | |||
| EntityTestUpdate | class | Drupal\entity_test_update\Entity | core/ |
Defines the test entity class for testing definition and schema updates. | 2 | |||
| EntityTestUpdateHooks | class | Drupal\entity_test_update\Hook | core/ |
Hook implementations for entity_test_update. | ||||
| EntityTestUpdateStorage | class | Drupal\entity_test_update | core/ |
Helper class for entity update testing. | 1 | |||
| EntityTestUpdateStorageSchema | class | Drupal\entity_test_update | core/ |
Defines the entity_test_update storage_schema handler. | 1 | |||
| EntityTestUserClass | class | Drupal\entity_test_bundle_class\Entity | core/ |
A custom bundle class for the User entity. | 2 | |||
| EntityTestUuidId | class | Drupal\entity_test\Entity | core/ |
Defines a test entity class with UUIDs as IDs. | ||||
| EntityTestVariant | class | Drupal\entity_test_bundle_class\Entity | core/ |
Defines a custom class to use for EntityTest. | 2 | |||
| EntityTestViewBuilder | class | Drupal\entity_test | core/ |
Defines an entity view builder for a test entity. | 1 | 16 | ||
| EntityTestViewBuilder | class | Drupal\entity_test\Entity | core/ |
Test entity class for testing a view builder. | ||||
| EntityTestViewBuilderOverriddenView | class | Drupal\entity_test | core/ |
Provides a view builder that overrides ::view() and ::viewMultiple(). | 1 | |||
| EntityTestViewGrantsCacheContext | class | Drupal\entity_test\Cache | core/ |
Defines the entity_test view grants cache context service. | 2 | |||
| EntityTestViewsData | class | Drupal\entity_test | core/ |
Provides a view to override views data for test entity types. | 4 | |||
| EntityTestViewsFieldAccessTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests base field access in Views for the entity_test entity. | ||||
| EntityTestViewsHooks | class | Drupal\entity_test\Hook | core/ |
Hook implementations for entity_test. | ||||
| EntityTestWithBundle | class | Drupal\entity_test\Entity | core/ |
Defines the Test entity with bundle entity class. | 1 | 9 | ||
| EntityTestWithBundleTypeNewBundle | class | Drupal\entity_test_attribute_bundle_class\Entity | core/ |
Sets bundle class for 'new_bundle' bundle for 'entity_test_with_bundle' type. | 1 | |||
| EntityTestWithRevisionLog | class | Drupal\entity_test_revlog\Entity | core/ |
Defines the test entity class. | 2 | 4 | ||
| EntityTestXmlAnonTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
Tests EntityTest Xml Anon. | ||||
| EntityTestXmlBasicAuthTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
Tests EntityTest Xml Basic Auth. | ||||
| EntityTestXmlCookieTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
Tests EntityTest Xml Cookie. | ||||
| EntityTrait | trait | Drupal\Tests | core/ |
Provides helper methods for working with entities in tests. | 1 | |||
| EntityTranslationFormTest | class | Drupal\Tests\system\Functional\Entity | core/ |
Tests entity translation form. | ||||
| EntityTranslationRendererBase | abstract class | Drupal\views\Entity\Render | core/ |
Defines a base class for entity translation renderers. | 3 | |||
| EntityTranslationRenderTrait | trait | Drupal\views\Entity\Render | core/ |
Trait used to instantiate the view's entity translation renderer. | 6 | |||
| EntityTranslationSettings | class | Drupal\content_translation\Plugin\migrate\source\d7 | core/ |
Drupal 7 Entity Translation settings (variables) from database. | 1 | |||
| EntityTranslationSettingsTest | class | Drupal\Tests\content_translation\Kernel\Plugin\migrate\source\d7 | core/ |
Tests entity translation settings source plugin. | ||||
| EntityTranslationTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests entity translation functionality. | ||||
| EntityType | class | Drupal\Core\Entity\Attribute | core/ |
Defines an entity type for plugin discovery. | 2 | 2 | ||
| EntityType | class | Drupal\Core\Entity | core/ |
Provides an implementation of an entity type and its metadata. | 2 | 13 | ||
| EntityType | class | Drupal\Core\Entity\Annotation | core/ |
Defines an Entity type annotation object. | 2 | |||
| EntityTypeBundleInfo | class | Drupal\Core\Entity | core/ |
Provides discovery and retrieval of entity type bundles. | 1 | 2 | ||
| EntityTypeBundleInfoInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for an entity type bundle info. | 1 | 82 | ||
| EntityTypeBundleInfoTest | class | Drupal\Tests\Core\Entity | core/ |
Tests Drupal\Core\Entity\EntityTypeBundleInfo. | ||||
| EntityTypeConstraint | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Checks if a value is a valid entity type. | ||||
| EntityTypeConstraintsTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests entity level validation constraints. | ||||
| EntityTypeConstraintValidator | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Validates the EntityType constraint. | ||||
| EntityTypeConstraintValidatorTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests validation constraints for EntityTypeConstraintValidator. | ||||
| EntityTypedDataDefinitionTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests deriving metadata of entity and field data types. | ||||
| EntityTypeEvent | class | Drupal\Core\Entity | core/ |
Defines a base class for all entity type events. | 1 | |||
| EntityTypeEvents | final class | Drupal\Core\Entity | core/ |
Contains all events thrown while handling entity types. | 3 | |||
| EntityTypeEventSubscriberTrait | trait | Drupal\Core\Entity | core/ |
Helper methods for EntityTypeListenerInterface. | 4 | |||
| EntityTypeIdLengthException | class | Drupal\Core\Entity\Exception | core/ |
Defines an exception thrown when an entity ID is too long. | 2 | |||
| EntityTypeInfo | class | Drupal\content_moderation | core/ |
Manipulates entity type information. | 2 | |||
| EntityTypeInfo | class | Drupal\workspaces\Hook | core/ |
Defines a class for reacting to entity type information hooks. | ||||
| EntityTypeInfoTest | class | Drupal\Tests\content_moderation\Kernel | core/ |
Tests Drupal\content_moderation\EntityTypeInfo. | ||||
| EntityTypeInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for an entity type and its metadata. | 3 | 268 | ||
| EntityTypeListener | class | Drupal\Core\Entity | core/ |
Reacts to entity type CRUD on behalf of the Entity system. | 2 |
Pagination
- Previous page
- Page 69
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.