You are here

public function EntityManagerWrapper::getAccessControlHandler in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Entity/EntityManagerWrapper.php \Drupal\webprofiler\Entity\EntityManagerWrapper::getAccessControlHandler()
  2. 8 webprofiler/src/Entity/EntityManagerWrapper.php \Drupal\webprofiler\Entity\EntityManagerWrapper::getAccessControlHandler()
  3. 8.2 webprofiler/src/Entity/EntityManagerWrapper.php \Drupal\webprofiler\Entity\EntityManagerWrapper::getAccessControlHandler()

Creates a new access control handler instance.

Parameters

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

Return value

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

Overrides EntityTypeManagerInterface::getAccessControlHandler

File

webprofiler/src/Entity/EntityManagerWrapper.php, line 153

Class

EntityManagerWrapper
Class EntityManagerWrapper.

Namespace

Drupal\webprofiler\Entity

Code

public function getAccessControlHandler($entity_type) {
  return $this->entityTypeManager
    ->getAccessControlHandler($entity_type);
}