function EntityTypeManagerInterface::createHandlerInstance
Creates new handler instance.
Usually \Drupal\Core\Entity\EntityTypeManagerInterface::getHandler() is preferred since that method has additional checking that the class exists and has static caches.
Parameters
mixed $class: The handler class to instantiate.
\Drupal\Core\Entity\EntityTypeInterface $definition: The entity type definition.
Return value
object A handler instance.
1 method overrides EntityTypeManagerInterface::createHandlerInstance()
- EntityTypeManager::createHandlerInstance in core/
lib/ Drupal/ Core/ Entity/ EntityTypeManager.php - Creates new handler instance.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityTypeManagerInterface.php, line 135
Class
- EntityTypeManagerInterface
- Provides an interface for entity type managers.
Namespace
Drupal\Core\EntityCode
public function createHandlerInstance($class, EntityTypeInterface $definition = NULL);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.