public function RegistrationAccessControlHandler::__construct in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/AccessControl/RegistrationAccessControlHandler.php \Drupal\rng\AccessControl\RegistrationAccessControlHandler::__construct()
- 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\AccessControlCode
public function __construct(EntityTypeInterface $entity_type) {
parent::__construct($entity_type);
$this->eventManager = \Drupal::service('rng.event_manager');
}