Classes, traits, and interfaces - 9.5.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 1523
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| EntityDisplayModeInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for entity types that hold form and view mode settings. | 3 | |||
| EntityDisplayModeListBuilder | class | Drupal\field_ui | core/ |
Defines a class to build a listing of view mode entities. | 1 | |||
| EntityDisplayModeTest | class | Drupal\Tests\field_ui\Functional | core/ |
Tests the entity display modes UI. | ||||
| EntityDisplayPluginCollection | class | Drupal\Core\Entity | core/ |
A collection of formatters or widgets. | 2 | |||
| EntityDisplayRebuilder | class | Drupal\field | core/ |
Rebuilds all form and view modes for a passed entity bundle. | 1 | |||
| EntityDisplayRepository | class | Drupal\Core\Entity | core/ |
Provides a repository for entity display objects (view modes and form modes). | 2 | |||
| EntityDisplayRepositoryInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for an entity display repository. | 1 | 33 | ||
| 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. | 5 | 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 | 5 | 2 | |
| EntityFieldManagerInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for an entity field manager. | 1 | 75 | ||
| 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/ |
Plugin annotation @MigrateDestination( id = "entity:file" ) | ||||
| 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 | 57 | ||
| 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 | ||
| EntityFormDisplayHalJsonAnonTest | class | Drupal\Tests\hal\Functional\Core | core/ |
@group hal @group legacy | ||||
| EntityFormDisplayHalJsonBasicAuthTest | class | Drupal\Tests\hal\Functional\Core | core/ |
@group hal @group legacy | ||||
| EntityFormDisplayHalJsonCookieTest | class | Drupal\Tests\hal\Functional\Core | core/ |
@group hal @group legacy | ||||
| EntityFormDisplayInterface | interface | Drupal\Core\Entity\Display | core/ |
Provides a common interface for entity form displays. | 1 | 12 | ||
| 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/ |
9 | 3 | |||
| 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 | 2 | ||
| EntityFormMode | class | Drupal\Core\Entity\Entity | core/ |
Defines the entity form mode configuration entity class. | 9 |
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.