You are here

public function ApiDocAccessControlHandler::__construct in Apigee API Catalog 8

Same name and namespace in other branches
  1. 8.2 src/Entity/Access/ApiDocAccessControlHandler.php \Drupal\apigee_api_catalog\Entity\Access\ApiDocAccessControlHandler::__construct()

Constructs an access control handler instance.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.

Overrides EntityAccessControlHandler::__construct

File

src/Entity/Access/ApiDocAccessControlHandler.php, line 55

Class

ApiDocAccessControlHandler
Access controller for the API Doc entity.

Namespace

Drupal\apigee_api_catalog\Entity\Access

Code

public function __construct(EntityTypeInterface $entity_type, EntityTypeManagerInterface $entityTypeManager) {
  parent::__construct($entity_type);
  $this->entityTypeManager = $entityTypeManager;
}