You are here

public function RegistrationAccessControlHandler::__construct in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/AccessControl/RegistrationAccessControlHandler.php \Drupal\rng\AccessControl\RegistrationAccessControlHandler::__construct()
  2. 3.x src/AccessControl/RegistrationAccessControlHandler.php \Drupal\rng\AccessControl\RegistrationAccessControlHandler::__construct()

Constructs an access control handler instance.

Parameters

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

Overrides EntityAccessControlHandler::__construct

File

src/AccessControl/RegistrationAccessControlHandler.php, line 33

Class

RegistrationAccessControlHandler
Access controller for the registration entity.

Namespace

Drupal\rng\AccessControl

Code

public function __construct(EntityTypeInterface $entity_type) {
  parent::__construct($entity_type);
  $this->eventManager = \Drupal::service('rng.event_manager');
}