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 |
---|---|---|---|---|---|---|---|---|
EntityFormDisplayEditForm | class | Drupal\field_ui\Form | core/ |
Edit form for the EntityFormDisplay entity type. | 1 | 1 | ||
EntityFormDisplayHalJsonAnonTest | class | Drupal\FunctionalTests\Hal | core/ |
@group hal | ||||
EntityFormDisplayHalJsonBasicAuthTest | class | Drupal\FunctionalTests\Hal | core/ |
@group hal | ||||
EntityFormDisplayHalJsonCookieTest | class | Drupal\FunctionalTests\Hal | core/ |
@group hal | ||||
EntityFormDisplayInterface | interface | Drupal\Core\Entity\Display | core/ |
Provides a common interface for entity form displays. | 1 | 15 | ||
EntityFormDisplayJsonAnonTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityFormDisplayJsonBasicAuthTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityFormDisplayJsonCookieTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityFormDisplayResourceTestBase | abstract class | Drupal\FunctionalTests\Rest | core/ |
10 | 4 | |||
EntityFormDisplayResourceTestBase | in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\FunctionalTests\Rest\EntityFormDisplayResourceTestBase instead. |
abstract class | Drupal\Tests\rest\Functional\EntityResource\EntityFormDisplay | core/ |
||||
EntityFormDisplayTest | class | Drupal\Tests\field_ui\Kernel | core/ |
Tests the entity display configuration entities. | ||||
EntityFormDisplayTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "EntityFormDisplay" config entity type. | ||||
EntityFormDisplayXmlAnonTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityFormDisplayXmlBasicAuthTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityFormDisplayXmlCookieTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityFormInterface | interface | Drupal\Core\Entity | core/ |
Defines an interface for entity form classes. | 2 | 3 | ||
EntityFormMode | class | Drupal\Core\Entity\Entity | core/ |
Defines the entity form mode configuration entity class. | 8 | |||
EntityFormModeAddForm | class | Drupal\field_ui\Form | core/ |
Provides the add form for entity display modes. | ||||
EntityFormModeHalJsonAnonTest | class | Drupal\FunctionalTests\Hal | core/ |
@group hal | ||||
EntityFormModeHalJsonBasicAuthTest | class | Drupal\FunctionalTests\Hal | core/ |
@group hal | ||||
EntityFormModeHalJsonCookieTest | class | Drupal\FunctionalTests\Hal | core/ |
@group hal | ||||
EntityFormModeInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface defining an entity form mode entity type. | 1 | 2 | ||
EntityFormModeJsonAnonTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityFormModeJsonBasicAuthTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityFormModeJsonCookieTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityFormModeListBuilder | class | Drupal\field_ui | core/ |
Defines a class to build a listing of form mode entities. | ||||
EntityFormModeResourceTestBase | in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\FunctionalTests\Rest\EntityFormModeResourceTestBase instead. |
abstract class | Drupal\Tests\rest\Functional\EntityResource\EntityFormMode | core/ |
||||
EntityFormModeResourceTestBase | abstract class | Drupal\FunctionalTests\Rest | core/ |
10 | 4 | |||
EntityFormModeTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "EntityFormMode" config entity type. | ||||
EntityFormModeXmlAnonTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityFormModeXmlBasicAuthTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityFormModeXmlCookieTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityFormTest | class | Drupal\Tests\Core\Entity | core/ |
@coversDefaultClass \Drupal\Core\Entity\EntityForm @group Entity | ||||
EntityFormTest | class | Drupal\Tests\system\Functional\Entity | core/ |
Tests the entity form. | ||||
EntityHandlerBase | abstract class | Drupal\Core\Entity | core/ |
Provides a base class for entity handlers. | 6 | 1 | ||
EntityHandlerInterface | interface | Drupal\Core\Entity | core/ |
Defines an interface for entity handlers. | 14 | 12 | ||
EntityHasFieldConstraint | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Checks if a value is an entity that has a specific field. | ||||
EntityHasFieldConstraintValidator | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Validates the EntityHasField constraint. | ||||
EntityHasFieldConstraintValidatorTest | class | Drupal\KernelTests\Core\Entity | core/ |
@covers \Drupal\Core\Entity\Plugin\Validation\Constraint\EntityHasFieldConstraintValidator | ||||
EntityImageStyle | class | Drupal\image\Plugin\migrate\destination | core/ |
Every migration that uses this destination must have an optional dependency on the d6_file migration to ensure it runs first. | ||||
EntityInterface | interface | Drupal\Core\Entity | core/ |
Defines a common interface for all entity objects. | 11 | 310 | ||
EntityKernelTestBase | abstract class | Drupal\KernelTests\Core\Entity | core/ |
Defines an abstract test base for entity kernel tests. | 77 | 39 | ||
EntityKernelTestBaseTest | class | Drupal\KernelTests\Core\Entity | core/ |
@covers \Drupal\KernelTests\Core\Entity\EntityKernelTestBase | ||||
EntityKeysTest | class | Drupal\KernelTests\Core\Entity | core/ |
Test the behavior of entity keys. | ||||
EntityLabel | class | Drupal\views\Plugin\views\field | core/ |
Field handler to display entity label optionally linked to entity page. | ||||
EntityLanguageTestBase | abstract class | Drupal\KernelTests\Core\Entity | core/ |
Base class for language-aware entity tests. | 3 | |||
EntityLastInstalledSchemaRepository | class | Drupal\Core\Entity | core/ |
Provides a repository for installed entity definitions. | 2 | |||
EntityLastInstalledSchemaRepositoryInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for an installed entity definition repository. | 1 | 9 | ||
EntityLegacyTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests legacy entity functions. | ||||
EntityLink | class | Drupal\comment\Plugin\views\field | core/ |
Handler for showing comment module's entity links. |
Pagination
- Previous page
- Page 53
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.