Classes, traits, and interfaces - 10.3.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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
EntityDisplayRepositoryInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for an entity display repository. | 1 | 37 | ||
EntityDisplayRepositoryTest | class | Drupal\KernelTests\Core\Entity | core/ |
@coversDefaultClass \Drupal\Core\Entity\EntityDisplayRepository[[api-linebreak]] | ||||
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. | ||||
EntityDisplayWithLayoutInterface | interface | Drupal\field_layout\Display | core/ |
Provides a common interface for entity displays that have layout. | 2 | 7 | ||
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. | 3 | |||
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 | 80 | ||
EntityFieldManagerTest | class | Drupal\Tests\Core\Entity | core/ |
@coversDefaultClass \Drupal\Core\Entity\EntityFieldManager[[api-linebreak]] @group Entity | ||||
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. | ||||
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. | 30 | 29 | ||
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/ |
@coversDefaultClass \Drupal\Core\Entity\EntityFormBuilder[[api-linebreak]] @group Entity | ||||
EntityFormDisplay | class | Drupal\Core\Entity\Entity | core/ |
Configuration entity. | 1 | 59 | ||
EntityFormDisplayAccessControlHandler | class | Drupal\Core\Entity\Entity\Access | core/ |
Provides an entity access control handler for form displays. | 1 | |||
EntityFormDisplayAccessControlHandlerTest | class | Drupal\Tests\Core\Entity\Access | core/ |
@coversDefaultClass \Drupal\Core\Entity\Entity\Access\EntityFormDisplayAccessControlHandler[[api-linebreak]] @group Entity | 1 | |||
EntityFormDisplayEditForm | class | Drupal\field_ui\Form | core/ |
Edit form for the EntityFormDisplay entity type. | 1 | 1 | ||
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/ |
6 | ||||
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. | ||||
EntityFormDisplayValidationTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests validation of entity_form_display entities. | ||||
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. | 4 | 4 | ||
EntityFormMode | class | Drupal\Core\Entity\Entity | core/ |
Defines the entity form mode configuration entity class. | 14 | |||
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 | 4 | ||
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 | abstract class | Drupal\FunctionalTests\Rest | core/ |
6 | ||||
EntityFormModeTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "EntityFormMode" config entity type. |
Pagination
- Previous page
- Page 57
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.