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 224

Class

EntityTypeManager
Manages entity type plugin definitions.

Namespace

Drupal\Core\Entity

Code

public function getAccessControlHandler($entity_type) {
  return $this->getHandler($entity_type, 'access');
}
doc_Drupal
2016-10-29 09:08:35
Comments
Leave a Comment

Please login to continue.