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 |
|---|---|---|---|---|---|---|---|---|
| EntityTestBaseFieldDisplay | class | Drupal\entity_test\Entity | core/ |
Defines a test entity class for base fields display. | 3 | |||
| EntityTestBlock | class | Drupal\entity_test\Plugin\Block | core/ |
Provides a block that renders an entity with parallel placeholder rendering. | ||||
| 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. | ||||
| EntityTestBundleResourceTestBase | abstract class | Drupal\Tests\entity_test\Functional\Rest | core/ |
Resource test base for the EntityTestBundle entity. | 6 | |||
| EntityTestBundleXmlAnonTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
Tests EntityTest Bundle Xml Anon. | ||||
| EntityTestBundleXmlBasicAuthTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
Tests EntityTest Bundle Xml Basic Auth. | ||||
| EntityTestBundleXmlCookieTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
Tests EntityTest Bundle Xml Cookie Auth. | ||||
| 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 | |||
| EntityTestConstraintsHooks | class | Drupal\entity_test_constraints\Hook | core/ |
Hook implementations for entity_test_constraints. | ||||
| 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. | ||||
| EntityTestDefaultValue | class | Drupal\entity_test\Entity | core/ |
Defines a test entity class for testing default values. | ||||
| EntityTestDefinitionSubscriber | class | Drupal\entity_test | core/ |
Test entity type and field storage definition event subscriber. | 2 | |||
| EntityTestDeleteForm | class | Drupal\entity_test | core/ |
Provides the entity_test delete form. | 13 | |||
| EntityTestDestination | class | Drupal\Tests\migrate\Unit\Plugin\migrate\destination | core/ |
Stub class for testing EntityContentBase methods. | ||||
| EntityTestEntityLevel | class | Drupal\entity_test\Plugin\Validation\Constraint | core/ |
Constraint on entity level. | ||||
| EntityTestEntityLevelValidator | class | Drupal\entity_test\Plugin\Validation\Constraint | core/ |
Constraint validator for the EntityTestEntityLevel constraint. | ||||
| EntityTestExternal | class | Drupal\entity_test\Entity | core/ |
Test entity class. | 1 | |||
| EntityTestFieldMethods | class | Drupal\entity_test\Entity | core/ |
Defines the test entity class. | ||||
| EntityTestFieldOverride | class | Drupal\entity_test\Entity | core/ |
Defines a test entity class for testing default values. | ||||
| EntityTestForm | class | Drupal\entity_test | core/ |
Form controller for the test entity edit forms. | 22 | |||
| EntityTestHelper | class | Drupal\entity_test | core/ |
Class for the entity API providing several entity types for testing. | 63 | |||
| EntityTestHooks | class | Drupal\entity_test\Hook | core/ |
Hook implementations for entity_test. | ||||
| EntityTestJsonAnonTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
Tests EntityTest Json Anon. | ||||
| EntityTestJsonBasicAuthTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
Tests EntityTest Json Basic Auth. | ||||
| EntityTestJsonCookieTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
Tests EntityTest Json Cookie. | ||||
| EntityTestJsonInternalPropertyNormalizerTest | class | Drupal\Tests\entity_test\Functional\Rest | core/ |
Test that internal properties are not exposed in the 'json' format. |
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.