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 |
|---|---|---|---|---|---|---|---|---|
| EntityDisplayTest | class | Drupal\Tests\field_ui\FunctionalJavascript | core/ |
Tests the UI for entity displays. | 1 | 1 | ||
| EntityDisplayTest | class | Drupal\Tests\field_ui\Kernel | core/ |
Tests the entity display configuration entities. | ||||
| EntityDisplayTest | class | Drupal\Tests\field_ui\Functional | core/ |
Tests the UI for entity displays. | ||||
| EntityDuplicateTest | class | Drupal\KernelTests\Core\Entity | core/ |
Test entity duplication. | ||||
| EntityExists | class | Drupal\migrate\Plugin\migrate\process | core/ |
This plugin checks if a given entity exists. | ||||
| EntityExistsTest | class | Drupal\Tests\migrate\Kernel\Plugin | core/ |
Tests the EntityExists process plugin. | ||||
| EntityField | class | Drupal\views\Plugin\views\field | core/ |
A field that displays entity field data. | 6 | 8 | ||
| EntityFieldDefaultValueTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests default values for entity fields. | ||||
| EntityFieldDefinitionTrait | trait | Drupal\migrate | core/ |
The entity field definition trait. | 4 | |||
| EntityFieldInstance | class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides destination plugin for field_config configuration entities. | ||||
| EntityFieldManager | class | Drupal\Core\Entity | core/ |
Manages the discovery of entity fields. | 1 | 4 | 2 | |
| EntityFieldManagerInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for an entity field manager. | 1 | 85 | ||
| EntityFieldManagerTest | class | Drupal\Tests\Core\Entity | core/ |
Tests Drupal\Core\Entity\EntityFieldManager. | ||||
| EntityFieldRenderer | class | Drupal\views\Entity\Render | core/ |
Renders entity fields. | 1 | |||
| EntityFieldStorageConfig | class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides destination plugin for field_storage_config configuration entities. | ||||
| EntityFieldTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests the Entity Field API. | ||||
| EntityFieldValueTrait | trait | Drupal\Core\Entity | core/ |
Adds a ::getFieldValue() method suitable for use with content entities. | 1 | |||
| EntityFieldValueTraitTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests the EntityFieldValueTrait. | ||||
| EntityFile | class | Drupal\file\Plugin\migrate\destination | core/ |
Provides migrate destination plugin for File entities. | ||||
| EntityFilteringThemeTest | class | Drupal\Tests\system\Functional\Theme | core/ |
Tests XSS filtering for themed output for each entity type in all themes. | ||||
| EntityForm | class | Drupal\Core\Entity | core/ |
Base class for entity forms. | 32 | 33 | ||
| EntityFormBuilder | class | Drupal\Core\Entity | core/ |
Builds entity forms. | 1 | 2 | ||
| EntityFormBuilderInterface | interface | Drupal\Core\Entity | core/ |
Builds entity forms. | 1 | 2 | ||
| EntityFormBuilderTest | class | Drupal\Tests\Core\Entity | core/ |
Tests Drupal\Core\Entity\EntityFormBuilder. | ||||
| EntityFormDisplay | class | Drupal\Core\Entity\Entity | core/ |
Configuration entity. | 54 | |||
| EntityFormDisplayAccessControlHandler | class | Drupal\Core\Entity\Entity\Access | core/ |
Provides an entity access control handler for form displays. | 2 | |||
| EntityFormDisplayAccessControlHandlerTest | class | Drupal\Tests\Core\Entity\Access | core/ |
Tests Drupal\Core\Entity\Entity\Access\EntityFormDisplayAccessControlHandler. | 1 | |||
| EntityFormDisplayEditForm | class | Drupal\field_ui\Form | core/ |
Edit form for the EntityFormDisplay entity type. | ||||
| EntityFormDisplayInterface | interface | Drupal\Core\Entity\Display | core/ |
Provides a common interface for entity form displays. | 1 | 14 | ||
| EntityFormDisplayJsonAnonTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Entity Form Display Json Anon. | ||||
| EntityFormDisplayJsonBasicAuthTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Entity Form Display Json Basic Auth. | ||||
| EntityFormDisplayJsonCookieTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Entity Form Display Json Cookie. | ||||
| EntityFormDisplayResourceTestBase | abstract class | Drupal\FunctionalTests\Rest | core/ |
Resource test base for the entity_form_display entity. | 6 | |||
| EntityFormDisplayTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "EntityFormDisplay" config entity type. | ||||
| EntityFormDisplayTest | class | Drupal\Tests\field_ui\Kernel | core/ |
Tests the entity display configuration entities. | ||||
| 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 | 7 | ||
| 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 | ||
| 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 | |||
| 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. |
Pagination
- Previous page
- Page 61
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.