public function EntityTypeManagerInterface::createHandlerInstance
public EntityTypeManagerInterface::createHandlerInstance($class, EntityTypeInterface $definition = NULL)
Creates new handler instance.
Usually \Drupal\Core\Entity\EntityManagerInterface::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.
File
- core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php, line 125
Class
- EntityTypeManagerInterface
- Provides an interface for entity type managers.
Namespace
Drupal\Core\EntityCode
public function createHandlerInstance($class, EntityTypeInterface $definition = NULL);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityTypeManagerInterface.php/function/EntityTypeManagerInterface::createHandlerInstance/8.1.x