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 |
|---|---|---|---|---|---|---|---|---|
| EntityReferenceSupportedNewEntitiesConstraint | class | Drupal\workspaces\Plugin\Validation\Constraint | core/ |
The entity reference supported new entities constraint. | ||||
| EntityReferenceSupportedNewEntitiesConstraintValidator | class | Drupal\workspaces\Plugin\Validation\Constraint | core/ |
Checks if new entities created for entity reference fields are supported. | 1 | |||
| EntityReferenceSupportedNewEntitiesConstraintValidatorTest | class | Drupal\Tests\workspaces\Kernel | core/ |
Tests Drupal\workspaces\Plugin\Validation\Constraint\EntityReferenceSupportedNewEntitiesConstraintValidator. | ||||
| EntityReferenceTaxonomyTermRssFormatter | class | Drupal\taxonomy\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'entity reference taxonomy term RSS' formatter. | ||||
| EntityReferenceTestHooks | class | Drupal\entity_reference_test\Hook | core/ |
Hook implementations for entity_reference_test. | ||||
| EntityReferenceTranslationDeriver | class | Drupal\migrate_drupal\Plugin\migrate | core/ |
Deriver for entity reference field translations. | 2 | |||
| EntityReferenceUuidItem | class | Drupal\jsonapi_test_field_type\Plugin\Field\FieldType | core/ |
Defines the 'entity_reference_uuid' entity field type. | ||||
| EntityReferenceWidgetTest | class | Drupal\Tests\media_library\FunctionalJavascript | core/ |
Tests the Media library entity reference widget. | 1 | 1 | ||
| EntityReferenceXSSTest | class | Drupal\Tests\field\Functional\EntityReference | core/ |
Tests possible XSS security issues in entity references. | ||||
| EntityRepository | class | Drupal\Core\Entity | core/ |
Provides several mechanisms for retrieving entities. | 2 | 2 | ||
| EntityRepositoryInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface for an entity repository. | 2 | 80 | ||
| EntityRepositoryTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests the entity repository. | ||||
| EntityRepositoryTest | class | Drupal\Tests\Core\Entity | core/ |
Tests Drupal\Core\Entity\EntityRepository. | ||||
| EntityResolverInterface | interface | Drupal\serialization\EntityResolver | core/ |
Interface for entity resolvers. | 3 | |||
| EntityResolverManager | class | Drupal\Core\Entity | core/ |
Sets the entity route parameter converter options automatically. | 2 | 2 | ||
| EntityResolverManagerTest | class | Drupal\Tests\Core\Entity | core/ |
Tests Drupal\Core\Entity\EntityResolverManager. | ||||
| EntityResource | class | Drupal\rest\Plugin\rest\resource | core/ |
Represents entities as resources. | 1 | 1 | ||
| EntityResource | class | Drupal\jsonapi\Controller | core/ |
Process all entity requests. | 1 | 2 | ||
| EntityResourceAccessTrait | trait | Drupal\rest\Plugin\rest\resource | core/ |
@internal @todo Consider making public in https://www.drupal.org/node/2300677 | 1 | |||
| EntityResourcePostRouteSubscriber | class | Drupal\rest\EventSubscriber | core/ |
Generates a 'create' route for an entity type if it has a REST POST route. | 2 | |||
| EntityResourceRestTestCoverageTest | class | Drupal\Tests\rest\Kernel\EntityResource | core/ |
Checks that all core content/config entity types have REST test coverage. | ||||
| EntityResourceTest | class | Drupal\Tests\jsonapi\Kernel\Controller | core/ |
Tests Drupal\jsonapi\Controller\EntityResource. | ||||
| EntityResourceTestBase | abstract class | Drupal\Tests\rest\Functional\EntityResource | core/ |
Defines a base class for testing all entity resources. | 13 | 12 | ||
| EntityResourceValidationTrait | trait | Drupal\rest\Plugin\rest\resource | core/ |
@internal @todo Consider making public in https://www.drupal.org/node/2300677 | 3 | |||
| EntityResourceValidationTraitTest | class | Drupal\Tests\rest\Unit | core/ |
Tests Drupal\rest\Plugin\rest\resource\EntityResourceValidationTrait. | ||||
| EntityResourceValidationTraitTestClass | class | Drupal\Tests\rest\Unit | core/ |
A test class to use to test EntityResourceValidationTrait. | ||||
| EntityReverse | class | Drupal\views\Plugin\views\relationship | core/ |
A relationship handlers which reverse entity references. | ||||
| EntityReverseJoinTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests the EntityReverse join plugin. | ||||
| EntityRevision | class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides entity revision destination plugin. | 2 | 2 | ||
| EntityRevision | class | Drupal\Tests\migrate\Unit\destination | core/ |
Mock that exposes from internal methods for testing. | ||||
| EntityRevisionParamConverter | class | Drupal\Core\ParamConverter | core/ |
Parameter converter for upcasting entity revision IDs to full objects. | 1 | 2 | ||
| EntityRevisionParamConverterTest | class | Drupal\Tests\Core\ParamConverter | core/ |
Tests Drupal\Core\ParamConverter\EntityRevisionParamConverter. | ||||
| EntityRevisionRouteEnhancer | class | Drupal\Core\Routing\Enhancer | core/ |
Adds _entity_revision to the request attributes, if possible. | 1 | 2 | ||
| EntityRevisionRouteEnhancerTest | class | Drupal\Tests\Core\Enhancer | core/ |
Tests Drupal\Core\Routing\Enhancer\EntityRevisionRouteEnhancer. | ||||
| EntityRevisionsTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests the loaded Revision of an entity. | ||||
| EntityRevisionsTest | class | Drupal\Tests\system\Functional\Entity | core/ |
Tests modifying an entity with revisions. | ||||
| EntityRevisionTest | class | Drupal\Tests\migrate\Unit\destination | core/ |
Tests entity revision destination. | ||||
| EntityRevisionTest | class | Drupal\Tests\migrate\Unit\Plugin\migrate\destination | core/ |
Tests entity revision destination functionality. | ||||
| EntityRevisionTest | class | Drupal\Tests\migrate\Kernel\Plugin | core/ |
Tests the EntityRevision destination plugin. | ||||
| EntityRevisionTestDestination | class | Drupal\Tests\migrate\Unit\Plugin\migrate\destination | core/ |
Stub class for testing EntityRevision methods. | ||||
| EntityRevisionTranslationTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests proper revision propagation of entities. | ||||
| EntityRevisionViewController | class | Drupal\Core\Entity\Controller | core/ |
Defines a controller to view an entity revision. | 2 | 1 | ||
| EntityRouteAlterSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Registers the 'type' of route parameter names that match an entity type. | 2 | |||
| EntityRouteEnhancer | class | Drupal\Core\Entity\Enhancer | core/ |
Enhances an entity form route with the appropriate controller. | 1 | 2 | ||
| EntityRouteEnhancerTest | class | Drupal\Tests\Core\Entity\Enhancer | core/ |
Tests Drupal\Core\Entity\Enhancer\EntityRouteEnhancer. | ||||
| EntityRouteHelper | class | Drupal\navigation | core/ |
Helper service to detect entity routes. | 2 | 2 | ||
| EntityRouteProviderInterface | interface | Drupal\Core\Entity\Routing | core/ |
Allows entity types to provide routes. | 6 | 4 | ||
| EntityRouteProviderSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Ensures that routes can be provided by entity types. | 2 | |||
| EntityRow | class | Drupal\views\Plugin\views\row | core/ |
Generic entity row plugin to provide a common base for all entity types. | 2 | 2 | ||
| EntitySchemaSubscriber | class | Drupal\entity_test_update\EventSubscriber | core/ |
Defines a class for listening to entity schema changes. | 2 |
Pagination
- Previous page
- Page 65
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.