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 |
---|---|---|---|---|---|---|---|---|
EntityDisplayModeBaseTestableClass | class | Drupal\Tests\Core\Config\Entity | core/ |
A class extending EntityDisplayModeBase for testing purposes. | ||||
EntityDisplayModeBaseUnitTest | class | Drupal\Tests\Core\Config\Entity | core/ |
@coversDefaultClass \Drupal\Core\Entity\EntityDisplayModeBase[[api-linebreak]] @group Config | ||||
EntityDisplayModeController | class | Drupal\field_ui\Controller | core/ |
Provides methods for entity display mode routes. | ||||
EntityDisplayModeDeleteForm | class | Drupal\field_ui\Form | core/ |
Provides the delete form for entity display modes. | ||||
EntityDisplayModeEditForm | class | Drupal\field_ui\Form | core/ |
Provides the edit form for entity display modes. | ||||
EntityDisplayModeFormBase | abstract class | Drupal\field_ui\Form | core/ |
Provides the generic base class for entity display mode forms. | 2 | |||
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 | 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 |
Pagination
- Previous page
- Page 56
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.