public function EntityTypeManagerInterface::getHandler in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php \Drupal\Core\Entity\EntityTypeManagerInterface::getHandler()
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
2 methods override EntityTypeManagerInterface::getHandler()
- EntityManager::getHandler in core/
lib/ Drupal/ Core/ Entity/ EntityManager.php - EntityTypeManager::getHandler in core/
lib/ Drupal/ Core/ Entity/ EntityTypeManager.php - Creates a new handler instance for a entity type and handler type.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityTypeManagerInterface.php, line 113 - Contains \Drupal\Core\Entity\EntityTypeManagerInterface.
Class
- EntityTypeManagerInterface
- Provides an interface for entity type managers.
Namespace
Drupal\Core\EntityCode
public function getHandler($entity_type, $handler_type);