public function EntityTypeManager::getAccessControlHandler

public EntityTypeManager::getAccessControlHandler($entity_type)

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 216

Class

EntityTypeManager
Manages entity type plugin definitions.

Namespace

Drupal\Core\Entity

Code

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

© 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!EntityTypeManager.php/function/EntityTypeManager::getAccessControlHandler/8.1.x