You are here

public function TeamAccessHandler::__construct in Apigee Edge 8

TeamAccessHandler constructor.

Parameters

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

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

Overrides EntityAccessControlHandler::__construct

File

modules/apigee_edge_teams/src/Entity/TeamAccessHandler.php, line 52

Class

TeamAccessHandler
Access handler for Team entities.

Namespace

Drupal\apigee_edge_teams\Entity

Code

public function __construct(EntityTypeInterface $entity_type, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($entity_type);
  $this->developerStorage = $entity_type_manager
    ->getStorage('developer');
}