W3cubDocs

/Drupal 8

public function EntityTypeManagerInterface::getHandler

public EntityTypeManagerInterface::getHandler($entity_type, $handler_type)

Creates a new handler instance for a entity type and handler type.

Parameters

string $entity_type: The entity type for this handler.

string $handler_type: The handler type to create an instance for.

Return value

object A handler instance.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

File

core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php, line 108

Class

EntityTypeManagerInterface
Provides an interface for entity type managers.

Namespace

Drupal\Core\Entity

Code

public function getHandler($entity_type, $handler_type);

© 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::getHandler/8.1.x