You are here

public function EntityTypeManager::getAccessControlHandler in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/EntityTypeManager.php \Drupal\Core\Entity\EntityTypeManager::getAccessControlHandler()

Creates a new access control handler instance.

Parameters

string $entity_type: The entity type for this access control handler.

Return value

\Drupal\Core\Entity\EntityAccessControlHandlerInterface. A access control handler instance.

Overrides EntityTypeManagerInterface::getAccessControlHandler

File

core/lib/Drupal/Core/Entity/EntityTypeManager.php, line 226
Contains \Drupal\Core\Entity\EntityTypeManager.

Class

EntityTypeManager
Manages entity type plugin definitions.

Namespace

Drupal\Core\Entity

Code

public function getAccessControlHandler($entity_type) {
  return $this
    ->getHandler($entity_type, 'access');
}