public EntityType::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: The name of the class that provides listings of the entities. The class must implement \Drupal\Core\Entity\EntityListBuilderInterface.
- render: 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.
Overrides EntityTypeInterface::getHandlerClasses
File
- core/lib/Drupal/Core/Entity/EntityType.php, line 435
Class
- EntityType
- Provides an implementation of an entity type and its metadata.
Namespace
Drupal\Core\Entity
Code
public function getHandlerClasses() { return $this->handlers; }
Please login to continue.