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 |
|---|---|---|---|---|---|---|---|---|
| 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. | 6 | 2 | ||
| 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. | 1 | |||
| 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 | 337 | ||
| EntityKernelTestBase | abstract class | Drupal\KernelTests\Core\Entity | core/ |
Defines an abstract test base for entity kernel tests. | 83 | 40 | ||
| EntityKernelTestBaseTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests Entity Kernel Test Base. | ||||
| 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. | ||||
| EntityLabelTest | class | Drupal\Tests\system\Kernel\Entity | core/ |
Tests that entity type labels use sentence-case. | ||||
| 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 | 7 | ||
| EntityLink | class | Drupal\comment\Plugin\views\field | core/ |
Handler for showing comment module's entity links. | 1 | |||
| EntityLink | class | Drupal\views\Plugin\views\field | core/ |
Field handler to present a link to an entity. | 3 | 2 | ||
| EntityLinkDelete | class | Drupal\views\Plugin\views\field | core/ |
Field handler to present a link to delete an entity. | ||||
| EntityLinkEdit | class | Drupal\views\Plugin\views\field | core/ |
Field handler to present a link to edit an entity. | ||||
| EntityLinks | class | Drupal\filter\Plugin\Filter | core/ |
Provides the Entity Links filter. | 2 | |||
| EntityLinksTest | class | Drupal\Tests\filter\Kernel | core/ |
Tests the behavior of generating entity URLs when using entity links in CKEditor. | ||||
| EntityLinkSuggestions | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 Entity Link Suggestions plugin. | 1 | |||
| EntityLinkSuggestionsController | class | Drupal\ckeditor5\Controller | core/ |
Returns responses for entity link suggestions autocomplete route. | 1 | |||
| EntityLinkSuggestionsTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
For testing the drupalEntityLinkSuggestions plugin. | ||||
| EntityLinkSuggestionTest | class | Drupal\Tests\ckeditor5\Kernel | core/ |
Tests entity link suggestions. | ||||
| EntityLinkTargetInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for generating a link target from an entity. | 4 | 4 | ||
| EntityLinkTest | class | Drupal\Tests\comment\Unit\Plugin\views\field | core/ |
Tests Drupal\comment\Plugin\views\field\EntityLink. | ||||
| EntityLinkTest | class | Drupal\Tests\Core\Entity | core/ |
Tests Drupal\Core\Entity\EntityBase. | ||||
| EntityListBuilder | class | Drupal\Core\Entity | core/ |
Defines a generic implementation to build a listing of entities. | 9 | 16 | ||
| EntityListBuilderInterface | interface | Drupal\Core\Entity | core/ |
Defines an interface to build entity listings. | 2 | 2 | ||
| EntityListBuilderTest | class | Drupal\Tests\Core\Entity | core/ |
Tests Drupal\Core\Entity\EntityListBuilder. | ||||
| EntityListBuilderTest | class | Drupal\Tests\system\Functional\Entity | core/ |
Tests entity list builder functionality. | ||||
| EntityListController | class | Drupal\Core\Entity\Controller | core/ |
Defines a generic controller to list entities. | 2 | 2 | ||
| EntityLoadByUuidTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests loading entities by UUID. | ||||
| EntityMalformedException | class | Drupal\Core\Entity | core/ |
Defines an exception thrown when a malformed entity is passed. | 10 | |||
| EntityMethod | final class | Drupal\Core\Config\Action\Plugin\ConfigAction | core/ |
Makes config entity methods with the ActionMethod attribute into actions. | ||||
| EntityMethodConfigActionsTest | class | Drupal\KernelTests\Core\Recipe | core/ |
Tests entity method config actions. | ||||
| EntityMethodDeriver | final class | Drupal\Core\Config\Action\Plugin\ConfigAction\Deriver | core/ |
Derives config action methods from attributed config entity methods. | 1 | |||
| EntityMethodException | final class | Drupal\Core\Config\Action | core/ |
@internal This API is experimental. | 3 | |||
| EntityModerationForm | class | Drupal\content_moderation\Form | core/ |
The EntityModerationForm provides a simple UI for changing moderation state. | 1 | |||
| EntityModerationRouteProvider | class | Drupal\content_moderation\Entity\Routing | core/ |
Dynamic route provider for the Content moderation module. | 1 | |||
| EntityNodeType | class | Drupal\node\Plugin\migrate\destination | core/ |
Migration destination for node type entity. | ||||
| EntityNonRevisionableTranslatableFieldTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests translating a non-revisionable field. | ||||
| EntityNormalizer | class | Drupal\serialization\Normalizer | core/ |
Normalizes/denormalizes Drupal entity objects into an array structure. | 2 | 1 | 2 |
Pagination
- Previous page
- Page 62
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.