Classes, traits, and interfaces - 8.9.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 1511
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
EntityTestLabelJsonCookieTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
@group rest | ||||
EntityTestLabelResourceTestBase | abstract class | Drupal\Tests\entity_test\Functional\Rest | core/ |
8 | 2 | |||
EntityTestLabelResourceTestBase | in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\entity_test\Functional\Rest\EntityTestLabelResourceTestBase instead. |
abstract class | Drupal\Tests\rest\Functional\EntityResource\EntityTestLabel | core/ |
||||
EntityTestLabelXmlAnonTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
@group rest | ||||
EntityTestLabelXmlBasicAuthTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
@group rest | ||||
EntityTestLabelXmlCookieTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
@group rest | ||||
EntityTestListBuilder | class | Drupal\entity_test | core/ |
Defines a class to build a listing of entity test entities. | 1 | 1 | ||
EntityTestLocalTasks | class | Drupal\entity_test\Plugin\Derivative | core/ |
Defines the local tasks for all the entity_test entities. | 1 | |||
EntityTestMapField | class | Drupal\entity_test\Entity | core/ |
An entity used for testing map base field values. | 3 | |||
EntityTestMapFieldHalJsonAnonTest | class | Drupal\Tests\entity_test\Functional\Hal | core/ |
@group hal | ||||
EntityTestMapFieldJsonAnonTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
@group rest | ||||
EntityTestMapFieldResourceTestBase | abstract class | Drupal\Tests\entity_test\Functional\Rest | core/ |
2 | 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 | 13 | ||
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. | 7 | |||
EntityTestMultiValueBasefield | class | Drupal\entity_test\Entity | core/ |
Defines an entity type with a multivalue base field. | 1 | |||
EntityTestMulWithRevisionLog | class | Drupal\entity_test_revlog\Entity | core/ |
Defines the test entity class. | 1 | |||
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. | ||||
EntityTestNoId | class | Drupal\entity_test\Entity | core/ |
Test entity class. | ||||
EntityTestNoLabel | class | Drupal\entity_test\Entity | core/ |
Test entity class. | 1 | |||
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 | |||
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/ |
13 | 5 | |||
EntityTestResourceTestBase | in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\entity_test\Functional\Rest\EntityTestResourceTestBase instead. |
abstract class | Drupal\Tests\rest\Functional\EntityResource\EntityTest | core/ |
||||
EntityTestRev | class | Drupal\entity_test\Entity | core/ |
Defines the test entity class. | 2 | 15 | ||
EntityTestRevisionTest | class | Drupal\Tests\views\Functional\Wizard | core/ |
Tests wizard for generic revisionable entities. | ||||
EntityTestRevPub | class | Drupal\entity_test\Entity | core/ |
Defines the test entity class. | ||||
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 | |||
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/ |
@group rest | ||||
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 | |||
EntityTestUpdate | class | Drupal\entity_test_update\Entity | core/ |
Defines the test entity class for testing definition and schema updates. | 3 | |||
EntityTestUpdateStorage | class | Drupal\entity_test_update | core/ |
Helper class for entity update testing. | ||||
EntityTestUpdateStorageSchema | class | Drupal\entity_test_update | core/ |
Defines the entity_test_update storage_schema handler. | ||||
EntityTestViewBuilder | class | Drupal\entity_test | core/ |
Defines an entity view builder for a test entity. | 1 | |||
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(). |
Pagination
- Previous page
- Page 58
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.