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 |
|---|---|---|---|---|---|---|---|---|
| EntityTestMapFieldResourceTestBase | abstract class | Drupal\Tests\entity_test\Functional\Rest | core/ |
Resource test base for the EntityTestMapField entity. | 1 | |||
| EntityTestMapFieldTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "EntityTestMapField" content entity type. | ||||
| EntityTestMul | class | Drupal\entity_test\Entity | core/ |
Defines the test entity class. | 3 | 11 | ||
| EntityTestMulBundle | class | Drupal\entity_test\Entity | core/ |
Defines the Test entity mul bundle configuration entity. | 1 | |||
| EntityTestMulChanged | class | Drupal\entity_test\Entity | core/ |
Defines the test entity class. | 1 | 3 | ||
| EntityTestMulDefaultValue | class | Drupal\entity_test\Entity | core/ |
Defines the test entity class. | ||||
| EntityTestMulLangcodeKey | class | Drupal\entity_test\Entity | core/ |
Defines a test entity class using a custom langcode entity key. | ||||
| EntityTestMulRev | class | Drupal\entity_test\Entity | core/ |
Defines the test entity class. | 1 | 18 | ||
| EntityTestMulRevChanged | class | Drupal\entity_test\Entity | core/ |
Defines the test entity class. | 1 | 1 | ||
| EntityTestMulRevChangedWithRevisionLog | class | Drupal\entity_test\Entity | core/ |
Defines the test entity class. | ||||
| EntityTestMulRevPub | class | Drupal\entity_test\Entity | core/ |
Defines the test entity class. | 1 | 12 | ||
| EntityTestMulRevPubStringId | class | Drupal\workspaces_test\Entity | core/ |
Defines the test entity class. | ||||
| EntityTestMultiValueBaseField | class | Drupal\entity_test\Entity | core/ |
Defines an entity type with a multivalue base field. | 1 | |||
| EntityTestMulWithBundle | class | Drupal\entity_test\Entity | core/ |
Defines the multilingual test entity class with bundles. | ||||
| EntityTestMulWithRevisionLog | class | Drupal\entity_test_revlog\Entity | core/ |
Defines the test entity class. | 2 | |||
| EntityTestMulWithRevisionLogPub | class | Drupal\entity_test_revlog\Entity | core/ |
Defines the test entity class. | ||||
| EntityTestNew | class | Drupal\entity_test\Entity | core/ |
Defines the test entity class for testing definition addition. | ||||
| EntityTestNoBundle | class | Drupal\entity_test\Entity | core/ |
Test entity class with no bundle. | 1 | |||
| EntityTestNoBundleWithLabel | class | Drupal\entity_test\Entity | core/ |
Test entity class with no bundle but with label. | 1 | |||
| EntityTestNoId | class | Drupal\entity_test\Entity | core/ |
Test entity class. | ||||
| EntityTestNoIdBundle | class | Drupal\entity_test\Entity | core/ |
Defines the entity_test_no_id bundle configuration entity. | 1 | |||
| EntityTestNoLabel | class | Drupal\entity_test\Entity | core/ |
Test entity class. | 1 | 2 | ||
| EntityTestNoLoadStorage | class | Drupal\entity_test | core/ |
Test storage class used to verify that no load operation is triggered. | ||||
| EntityTestNoUuid | class | Drupal\entity_test\Entity | core/ |
Test entity class with revisions but without UUIDs. | 1 | |||
| EntityTestOperationHooks | class | Drupal\entity_test_operation\Hook | core/ |
Hook implementations for entity_test_operation. | ||||
| EntityTestPermissions | class | Drupal\entity_test | core/ |
Provides dynamic permissions for entity test. | ||||
| EntityTestReferenceCustomCacheTagFormatter | class | Drupal\entity_test\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'entity_reference_custom_cache_tag' formatter. | ||||
| EntityTestResourceTestBase | abstract class | Drupal\Tests\entity_test\Functional\Rest | core/ |
Resource test base for the EntityTest entity. | 12 | 3 | ||
| EntityTestRev | class | Drupal\entity_test\Entity | core/ |
Defines the test entity class. | 2 | 24 | ||
| EntityTestRevisionTest | class | Drupal\Tests\views\Functional\Wizard | core/ |
Tests wizard for generic revisionable entities. | ||||
| EntityTestRevlogAccessControlHandler | class | Drupal\entity_test_revlog | core/ |
Defines the access control handler for test entity types. | 2 | |||
| EntityTestRevPub | class | Drupal\entity_test\Entity | core/ |
Defines the test entity class. | 2 | |||
| EntityTestRevPubWorkspaceHandler | class | Drupal\workspaces_test | core/ |
Provides a custom workspace handler for testing purposes. | 1 | |||
| EntityTestRoutes | class | Drupal\entity_test\Routing | core/ |
Subscriber for Entity Test routes. | ||||
| EntityTestStringId | class | Drupal\entity_test\Entity | core/ |
Defines a test entity class with a string ID. | 5 | |||
| EntityTestSubdirBundleClass | class | Drupal\entity_test_attribute_bundle_class\Entity\Subdir | core/ |
A bundle class that is in a subdirectory. | 1 | |||
| EntityTestTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "EntityTest" content entity type. | ||||
| EntityTestTextItemNormalizerTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
Tests EntityTest Text Item Normalizer. | ||||
| 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. |
Pagination
- Previous page
- Page 67
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.