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 |
---|---|---|---|---|---|---|---|---|
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\workspaces\EventSubscriber | core/ |
Defines a class for listening to entity schema changes. | 2 | |||
EntitySchemaSubscriber | class | Drupal\entity_test_update\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. | ||||
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. | ||||
EntitySerializedField | class | Drupal\entity_test\Entity | core/ |
Defines a test class for testing fields with a serialized column. | 1 | |||
EntityShortcutSet | class | Drupal\shortcut\Plugin\migrate\destination | core/ |
Migration destination for shortcut set entity. | ||||
EntityStateChangeValidationTest | class | Drupal\Tests\content_moderation\Kernel | core/ |
@coversDefaultClass \Drupal\content_moderation\Plugin\Validation\Constraint\ModerationStateConstraintValidator[[api-linebreak]] @group content_moderation | ||||
EntityStorageBase | abstract class | Drupal\Core\Entity | core/ |
A base entity storage class. | 3 | 2 | ||
EntityStorageBaseTest | class | Drupal\Tests\Core\Entity | core/ |
@coversDefaultClass \Drupal\Core\Entity\EntityStorageBase[[api-linebreak]] @group Entity | ||||
EntityStorageException | class | Drupal\Core\Entity | core/ |
Defines an exception thrown when storage operations fail. | 2 | 30 | ||
EntityStorageInterface | interface | Drupal\Core\Entity | core/ |
Defines the interface for entity storage classes. | 6 | 144 | ||
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. | 37 | 155 | ||
EntityTest | class | Drupal\Tests\views\Unit\Plugin\argument_validator | core/ |
@coversDefaultClass \Drupal\views\Plugin\views\argument_validator\Entity[[api-linebreak]] @group views | ||||
EntityTest | class | Drupal\Tests\views\Unit\Plugin\area | core/ |
@coversDefaultClass \Drupal\views\Plugin\views\area\Entity[[api-linebreak]] @group Entity | ||||
EntityTestAccessControlHandler | class | Drupal\entity_test | core/ |
Defines the access control handler for the test entity type. | ||||
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 | |||
EntityTestBase | 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. | 24 | |||
EntityTestBundleClass | class | Drupal\entity_test_bundle_class\Entity | core/ |
The bundle class for the bundle_class bundle of the entity_test entity. | 2 | |||
EntityTestBundleJsonAnonTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
@group rest | ||||
EntityTestBundleJsonBasicAuthTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
@group rest | ||||
EntityTestBundleJsonCookieTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
@group rest | ||||
EntityTestBundleResourceTestBase | abstract class | Drupal\Tests\entity_test\Functional\Rest | core/ |
6 | ||||
EntityTestBundleXmlAnonTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
@group rest | ||||
EntityTestBundleXmlBasicAuthTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
@group rest | ||||
EntityTestBundleXmlCookieTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
@group rest | ||||
EntityTestCache | class | Drupal\entity_test\Entity | core/ |
Defines the test entity class. | ||||
EntityTestCompositeConstraint | class | Drupal\entity_test\Entity | core/ |
Defines a test class for testing composite constraints. | 1 | |||
EntityTestCompositeConstraint | class | Drupal\entity_test\Plugin\Validation\Constraint | core/ |
Constraint with multiple fields. | 1 | |||
EntityTestCompositeConstraintValidator | class | Drupal\entity_test\Plugin\Validation\Constraint | core/ |
Constraint validator for the EntityTestComposite constraint. | ||||
EntityTestComputedBundleField | class | Drupal\entity_test\Entity | core/ |
An entity used for testing computed bundle field values. | 1 | |||
EntityTestComputedField | class | Drupal\entity_test\Entity | core/ |
An entity used for testing computed field values. | 6 | |||
EntityTestComputedFieldNormalizerTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
Test normalization of computed field. | ||||
EntityTestComputedFieldTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "EntityTestComputedField" content entity type. | ||||
EntityTestConstraints | class | Drupal\entity_test\Entity | core/ |
Defines a test class for testing the definition of entity level constraints. | 1 | |||
EntityTestConstraintViolation | class | Drupal\entity_test\Entity | core/ |
Defines the test entity class for testing entity constraint violations. | ||||
EntityTestContainerFactoryPlugin | class | Drupal\entity_test\Plugin\Validation\Constraint | core/ |
A dummy constraint for testing \Drupal\Core\Validation\ConstraintFactory. | ||||
EntityTestController | class | Drupal\entity_test\Controller | core/ |
Controller routines for entity_test routes. | ||||
EntityTestDateOnlyTest | class | Drupal\Tests\datetime\Functional\EntityResource\EntityTest | core/ |
Tests the datetime field constraint with 'date' items. | ||||
EntityTestDateRangeTest | class | Drupal\Tests\datetime_range\Functional\EntityResource\EntityTest | core/ |
Tests the 'daterange' field's normalization. | ||||
EntityTestDatetimeTest | class | Drupal\Tests\datetime\Functional\EntityResource\EntityTest | core/ |
Tests the datetime field constraint with 'datetime' items. | ||||
EntityTestDefaultAccess | class | Drupal\entity_test\Entity | core/ |
Defines a test entity class with no access control handler. | 1 | |||
EntityTestDefaultPlugin | class | Drupal\entity_test\Plugin\Validation\Constraint | core/ |
A dummy constraint for testing \Drupal\Core\Validation\ConstraintFactory. |
Pagination
- Previous page
- Page 61
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.