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);
doc_Drupal
2016-10-29 09:08:39
Comments
Leave a Comment

Please login to continue.