Classes, traits, and interfaces - 11.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 1519
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
EntityFormDisplayValidationTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests validation of entity_form_display entities. | ||||
EntityFormDisplayXmlAnonTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Entity Form Display Xml Anon. | ||||
EntityFormDisplayXmlBasicAuthTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Entity Form Display Xml Basic Auth. | ||||
EntityFormDisplayXmlCookieTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Entity Form Display Xml Cookie. | ||||
EntityFormInterface | interface | Drupal\Core\Entity | core/ |
Defines an interface for entity form classes. | 4 | 4 | ||
EntityFormInterface | interface | Drupal\Core\Entity | core/ |
Defines an interface for entity form classes. | 4 | 4 | ||
EntityFormInterface | interface | Drupal\Core\Entity | core/ |
Defines an interface for entity form classes. | 4 | 4 | ||
EntityFormInterface | interface | Drupal\Core\Entity | core/ |
Defines an interface for entity form classes. | 4 | 4 | ||
EntityFormMode | class | Drupal\Core\Entity\Entity | core/ |
Defines the entity form mode configuration entity class. | 15 | |||
EntityFormMode | class | Drupal\Core\Entity\Entity | core/ |
Defines the entity form mode configuration entity class. | 15 | |||
EntityFormModeAddForm | class | Drupal\field_ui\Form | core/ |
Provides the add form for entity display modes. | ||||
EntityFormModeInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface defining an entity form mode entity type. | 1 | 3 | ||
EntityFormModeInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface defining an entity form mode entity type. | 1 | 3 | ||
EntityFormModeInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface defining an entity form mode entity type. | 1 | 3 | ||
EntityFormModeInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface defining an entity form mode entity type. | 1 | 3 | ||
EntityFormModeJsonAnonTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Entity Form Mode Json Anon. | ||||
EntityFormModeJsonBasicAuthTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Entity Form Mode Json Basic Auth. | ||||
EntityFormModeJsonCookieTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Entity Form Mode Json Cookie. | ||||
EntityFormModeListBuilder | class | Drupal\field_ui | core/ |
Defines a class to build a listing of form mode entities. | ||||
EntityFormModeResourceTestBase | abstract class | Drupal\FunctionalTests\Rest | core/ |
Resource test base for the entity_form_mode entity. | 6 | |||
EntityFormModeResourceTestBase | abstract class | Drupal\FunctionalTests\Rest | core/ |
Resource test base for the entity_form_mode entity. | 6 | |||
EntityFormModeTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "EntityFormMode" config entity type. | ||||
EntityFormModeUpdatePathTest | class | Drupal\Tests\system\Functional\Update | core/ |
Tests update path for the entity form mode description value from '' to NULL. | ||||
EntityFormModeValidationTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests validation of entity_form_mode entities. | ||||
EntityFormModeXmlAnonTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Entity Form Mode Xml Anon. | ||||
EntityFormModeXmlBasicAuthTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Entity Form Mode Xml Basic Auth. | ||||
EntityFormModeXmlCookieTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Entity Form Mode Xml Cookie. | ||||
EntityFormTest | class | Drupal\Tests\Core\Entity | core/ |
Tests Drupal\Core\Entity\EntityForm. | ||||
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. | 7 | 2 | ||
EntityHandlerBase | abstract class | Drupal\Core\Entity | core/ |
Provides a base class for entity handlers. | 7 | 2 | ||
EntityHandlerBase | abstract class | Drupal\Core\Entity | core/ |
Provides a base class for entity handlers. | 7 | 2 | ||
EntityHandlerBase | abstract class | Drupal\Core\Entity | core/ |
Provides a base class for entity handlers. | 7 | 2 | ||
EntityHandlerInterface | interface | Drupal\Core\Entity | core/ |
Defines an interface for entity handlers. | 19 | 16 | ||
EntityHandlerInterface | interface | Drupal\Core\Entity | core/ |
Defines an interface for entity handlers. | 19 | 16 | ||
EntityHandlerInterface | interface | Drupal\Core\Entity | core/ |
Defines an interface for entity handlers. | 19 | 16 | ||
EntityHandlerInterface | interface | Drupal\Core\Entity | core/ |
Defines an interface for entity handlers. | 19 | 16 | ||
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/ |
Tests Entity Has Field Constraint Validator. | ||||
EntityImageStyle | class | Drupal\image\Plugin\migrate\destination | core/ |
Entity image style destination. | ||||
EntityInterface | interface | Drupal\Core\Entity | core/ |
Defines a common interface for all entity objects. | 10 | 328 | ||
EntityInterface | interface | Drupal\Core\Entity | core/ |
Defines a common interface for all entity objects. | 10 | 328 | ||
EntityInterface | interface | Drupal\Core\Entity | core/ |
Defines a common interface for all entity objects. | 10 | 328 | ||
EntityInterface | interface | Drupal\Core\Entity | core/ |
Defines a common interface for all entity objects. | 10 | 328 | ||
EntityKernelTestBase | abstract class | Drupal\KernelTests\Core\Entity | core/ |
Defines an abstract test base for entity kernel tests. | 84 | 40 | ||
EntityKernelTestBase | abstract class | Drupal\KernelTests\Core\Entity | core/ |
Defines an abstract test base for entity kernel tests. | 84 | 40 | ||
EntityKernelTestBase | abstract class | Drupal\KernelTests\Core\Entity | core/ |
Defines an abstract test base for entity kernel tests. | 84 | 40 | ||
EntityKernelTestBase | abstract class | Drupal\KernelTests\Core\Entity | core/ |
Defines an abstract test base for entity kernel tests. | 84 | 40 | ||
EntityKernelTestBaseTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests Entity Kernel Test Base. |
Pagination
- Previous page
- Page 108
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.