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 |
|---|---|---|---|---|---|---|---|---|
| EntityViewDisplayXmlBasicAuthTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Entity View Display Xml Basic Auth. | ||||
| EntityViewDisplayXmlCookieTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Entity View Display Xml Cookie. | ||||
| EntityViewHookTest | class | Drupal\KernelTests\Core\Entity | core/ |
Test view/render hooks for entities. | ||||
| EntityViewMode | class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides entity view mode destination plugin. | ||||
| EntityViewMode | class | Drupal\Core\Entity\Entity | core/ |
Defines the entity view mode configuration entity class. | 33 | |||
| EntityViewModeInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface defining an entity view mode entity type. | 1 | 4 | ||
| EntityViewModeJsonAnonTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Entity View Mode Json Anon. | ||||
| EntityViewModeJsonBasicAuthTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Entity View Mode Json Basic Auth. | ||||
| EntityViewModeJsonCookieTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Entity View Mode Json Cookie. | ||||
| EntityViewModeResourceTestBase | abstract class | Drupal\FunctionalTests\Rest | core/ |
Resource test base for the entity_view_mode entity. | 6 | |||
| EntityViewModeTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "EntityViewMode" config entity type. | ||||
| EntityViewModeValidationTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests validation of entity_view_mode entities. | ||||
| EntityViewModeXmlAnonTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Entity View Mode Xml Anon. | ||||
| EntityViewModeXmlBasicAuthTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Entity View Mode Xml Basic Auth. | ||||
| EntityViewModeXmlCookieTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Entity View Mode Xml Cookie. | ||||
| EntityViewsData | class | Drupal\views | core/ |
Provides generic views integration for entities. | 8 | 25 | ||
| EntityViewsDataInterface | interface | Drupal\views | core/ |
Provides an interface to integrate an entity type with views. | 2 | 1 | ||
| EntityViewsDataTest | class | Drupal\Tests\views\Kernel\Entity | core/ |
Tests entity views data. | ||||
| EntityViewsWithMultivalueBaseFieldTest | class | Drupal\Tests\views\Kernel\Entity | core/ |
Tests entity views with multivalue base fields. | ||||
| EntityViewTrait | trait | Drupal\Tests | core/ |
Provides helper methods to deal with building entity views in tests. | 5 | |||
| EntityWithoutBaseTableTest | class | Drupal\Tests\views\Kernel | core/ |
Tests field views data in an edge case scenario. | ||||
| EntityWithPluginCollectionInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for an object using a plugin collection. | 10 | 14 | ||
| EntityWithUriCacheTagsTestBase | abstract class | Drupal\Tests\system\Functional\Entity | core/ |
Provides helper methods for Entity cache tags tests; for entities with URIs. | 5 | 5 | ||
| EntityWorkspaceConflictConstraint | class | Drupal\workspaces\Plugin\Validation\Constraint | core/ |
Validation constraint for an entity being edited in multiple workspaces. | 1 | |||
| EntityWorkspaceConflictConstraintValidator | class | Drupal\workspaces\Plugin\Validation\Constraint | core/ |
Validates the EntityWorkspaceConflict constraint. | 1 | |||
| EntityWorkspaceConflictConstraintValidatorTest | class | Drupal\Tests\workspaces\Kernel | core/ |
Tests Drupal\workspaces\Plugin\Validation\Constraint\EntityWorkspaceConflictConstraintValidator. | ||||
| EntryPoint | class | Drupal\jsonapi\Controller | core/ |
Controller for the API entry point. | 1 | |||
| EntryPointTest | class | Drupal\Tests\jsonapi\Functional | core/ |
Makes assertions about the JSON:API behavior for internal entities. | ||||
| Enum | final class | Drupal\Component\Annotation\Doctrine\Annotation | core/ |
Annotation that can be used to signal to the parser to check the available values during the parsing process. | 1 | |||
| Enum | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The "enum" data type. | 1 | 1 | ||
| EnumConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Checks that a value is a valid Enum. | 1 | |||
| EnumConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validates the Enum constraint. | 1 | |||
| EnumConstraintValidatorTest | class | Drupal\KernelTests\Core\TypedData | core/ |
Tests the "enum" data type. | ||||
| Environment | class | Drupal\Component\Utility | core/ |
Provides PHP environment helper methods. | 16 | |||
| EnvironmentCleaner | class | Drupal\Core\Test | core/ |
Helper class for cleaning test environments. | 1 | |||
| EnvironmentCleanerInterface | interface | Drupal\Core\Test | core/ |
Defines an interface for cleaning up test results and fixtures. | 1 | |||
| EnvironmentCleanerTest | class | Drupal\KernelTests\Core\Test | core/ |
Tests Drupal\Core\Test\EnvironmentCleaner. | ||||
| EnvironmentSupportValidator | final class | Drupal\package_manager\Validator | core/ |
Checks that the environment has support for Package Manager. | 1 | |||
| EnvironmentSupportValidatorTest | class | Drupal\Tests\package_manager\Kernel | core/ |
Tests Environment Support Validator. | ||||
| EnvironmentTest | class | Drupal\Tests\Component\Utility | core/ |
Test PHP Environment helper methods. | ||||
| Equality | class | Drupal\views\Plugin\views\filter | core/ |
Simple filter to handle equal to / not equal to filters. | ||||
| EquivalentUpdate | final class | Drupal\Core\Update | core/ |
Value object to hold information about an equivalent update. | 3 | |||
| EquivalentUpdateTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tests that update hooks are properly run. | ||||
| Error | class | Drupal\Core\Utility | core/ |
Drupal error utility class. | 32 | |||
| ErrorCollection | class | Drupal\jsonapi\JsonApiResource | core/ |
To be used when the primary data is `errors`. | 4 | |||
| ErrorContainer | class | Drupal\FunctionalTests\Bootstrap | core/ |
Container base class which triggers an error. | ||||
| ErrorHandlerTest | class | Drupal\Tests\system\Functional\System | core/ |
Performs tests on the Drupal error and exception handler. | ||||
| ErrorServiceTestServiceProvider | class | Drupal\error_service_test | core/ |
The service provider for testing bedlam in container rebuilds. | ||||
| ErrorTest | class | Drupal\Tests\Core\Utility | core/ |
Tests Drupal\Core\Utility\Error. | ||||
| ErrorTestController | class | Drupal\error_test\Controller | core/ |
Controller routines for error_test routes. |
Pagination
- Previous page
- Page 71
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.