You are here

public function RegistrationAddAccessCheck::__construct in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Access/RegistrationAddAccessCheck.php \Drupal\rng\Access\RegistrationAddAccessCheck::__construct()
  2. 8 src/Access/RegistrationAddAccessCheck.php \Drupal\rng\Access\RegistrationAddAccessCheck::__construct()

Constructs a EventRegistrationAllowedCheck object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity manager.

File

src/Access/RegistrationAddAccessCheck.php, line 31

Class

RegistrationAddAccessCheck
Checks new registrations are permitted on an event.

Namespace

Drupal\rng\Access

Code

public function __construct(EntityTypeManagerInterface $entity_manager) {
  $this->entityManager = $entity_manager;
}