function EntityTypeInterface::getHandlerClasses
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getHandlerClasses()
- 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getHandlerClasses()
- 10 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getHandlerClasses()
Gets an array of handlers.
Return value
array An associative array where the keys are the names of different handler types (listed below) and the values are the names of the classes that implement that handler:
- storage: The name of the class used to load the objects. The class must implement \Drupal\Core\Entity\EntityStorageInterface.
- form: An associative array where the keys are the names of the different form operations (such as 'create', 'edit', or 'delete') and the values are the names of the handler classes for those operations. The name of the operation is passed also to the form handler's constructor, so that one class can be used for multiple entity forms when the forms are similar. The classes must implement \Drupal\Core\Entity\EntityFormInterface.
- list_builder: The name of the class that provides listings of the entities. The class must implement \Drupal\Core\Entity\EntityListBuilderInterface.
- view_builder: The name of the class that is used to render the entities. The class must implement \Drupal\Core\Entity\EntityViewBuilderInterface.
- access: The name of the class that is used for access checks. The class must implement \Drupal\Core\Entity\EntityAccessControlHandlerInterface. Defaults to \Drupal\Core\Entity\EntityAccessControlHandler.
- route_provider: (optional) A list of class names, keyed by a group string, which will be used to define routes related to this entity type. These classes must implement \Drupal\Core\Entity\Routing\EntityRouteProviderInterface.
1 method overrides EntityTypeInterface::getHandlerClasses()
- EntityType::getHandlerClasses in core/
lib/ Drupal/ Core/ Entity/ EntityType.php - Gets an array of handlers.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityTypeInterface.php, line 209
Class
- EntityTypeInterface
- Provides an interface for an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function getHandlerClasses();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.