public function RegistrantFactory::__construct in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/RegistrantFactory.php \Drupal\rng\RegistrantFactory::__construct()
- 3.x src/RegistrantFactory.php \Drupal\rng\RegistrantFactory::__construct()
Constructs a new RegistrantFactory object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\rng\EventManagerInterface $event_manager: The RNG event manager.
File
- src/
RegistrantFactory.php, line 35
Class
- RegistrantFactory
- The registrant entity factory.
Namespace
Drupal\rngCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, EventManagerInterface $event_manager) {
$this->registrantStorage = $entity_type_manager
->getStorage('registrant');
$this->eventManager = $event_manager;
}