public function RegistrationAddAccessCheck::__construct in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Access/RegistrationAddAccessCheck.php \Drupal\rng\Access\RegistrationAddAccessCheck::__construct()
- 3.x src/Access/RegistrationAddAccessCheck.php \Drupal\rng\Access\RegistrationAddAccessCheck::__construct()
Constructs a EventRegistrationAllowedCheck object.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $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\AccessCode
public function __construct(EntityManagerInterface $entity_manager) {
$this->entityManager = $entity_manager;
}