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 |
---|---|---|---|---|---|---|---|---|
EntityViewDisplayHalJsonAnonTest | class | Drupal\Tests\hal\Functional\Core | core/ |
@group hal @group legacy | 3 | 1 | ||
EntityViewDisplayHalJsonBasicAuthTest | class | Drupal\Tests\hal\Functional\Core | core/ |
@group hal @group legacy | ||||
EntityViewDisplayHalJsonCookieTest | class | Drupal\Tests\hal\Functional\Core | core/ |
@group hal @group legacy | ||||
EntityViewDisplayInterface | interface | Drupal\Core\Entity\Display | core/ |
Provides a common interface for entity view displays. | 1 | 41 | ||
EntityViewDisplayJsonAnonTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityViewDisplayJsonBasicAuthTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityViewDisplayJsonCookieTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityViewDisplayResourceTestBase | abstract class | Drupal\FunctionalTests\Rest | core/ |
8 | 2 | |||
EntityViewDisplayTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "EntityViewDisplay" config entity type. | 1 | 1 | ||
EntityViewDisplayXmlAnonTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityViewDisplayXmlBasicAuthTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityViewDisplayXmlCookieTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityViewHookTest | class | Drupal\KernelTests\Core\Entity | core/ |
Test view/render hooks for entities. | ||||
EntityViewMode | class | Drupal\Core\Entity\Entity | core/ |
Defines the entity view mode configuration entity class. | 23 | |||
EntityViewMode | class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides entity view mode destination plugin. | ||||
EntityViewModeHalJsonAnonTest | class | Drupal\Tests\hal\Functional\Core | core/ |
@group hal @group legacy | ||||
EntityViewModeHalJsonBasicAuthTest | class | Drupal\Tests\hal\Functional\Core | core/ |
@group hal @group legacy | ||||
EntityViewModeHalJsonCookieTest | class | Drupal\Tests\hal\Functional\Core | core/ |
@group hal @group legacy | ||||
EntityViewModeInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface defining an entity view mode entity type. | 1 | 3 | ||
EntityViewModeJsonAnonTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityViewModeJsonBasicAuthTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityViewModeJsonCookieTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityViewModeResourceTestBase | abstract class | Drupal\FunctionalTests\Rest | core/ |
9 | 3 | |||
EntityViewModeTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "EntityViewMode" config entity type. | ||||
EntityViewModeXmlAnonTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityViewModeXmlBasicAuthTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityViewModeXmlCookieTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
EntityViewsData | class | Drupal\views | core/ |
Provides generic views integration for entities. | 10 | 11 | ||
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. | 4 | |||
EntityWithPluginCollectionInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for an object using a plugin collection. | 10 | 13 | ||
EntityWithUriCacheTagsTestBase | abstract class | Drupal\Tests\system\Functional\Entity | core/ |
Provides helper methods for Entity cache tags tests; for entities with URIs. | 6 | 6 | ||
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. | ||||
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. | ||||
Environment | class | Drupal\Component\Utility | core/ |
Provides PHP environment helper methods. | 18 | |||
EnvironmentCleaner | class | Drupal\Core\Test | core/ |
Helper class for cleaning test environments. | 2 | |||
EnvironmentCleanerInterface | interface | Drupal\Core\Test | core/ |
Defines an interface for cleaning up test results and fixtures. | 1 | |||
EnvironmentCleanerTest | class | Drupal\KernelTests\Core\Test | core/ |
@coversDefaultClass \Drupal\Core\Test\EnvironmentCleaner @group Test | ||||
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. | ||||
Error | class | Drupal\Core\Utility | core/ |
Drupal error utility class. | 13 | |||
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/ |
|||||
ErrorTest | class | Drupal\Tests\Core\Utility | core/ |
@coversDefaultClass \Drupal\Core\Utility\Error @group Utility |
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.