function EventManager::__construct in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/EventManager.php \Drupal\rng\EventManager::__construct()
- 3.x src/EventManager.php \Drupal\rng\EventManager::__construct()
Constructs a new EventManager object.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
File
- src/
EventManager.php, line 38
Class
- EventManager
- Event manager for RNG.
Namespace
Drupal\rngCode
function __construct(EntityManagerInterface $entity_manager) {
$this->eventTypeStorage = $entity_manager
->getStorage('event_type');
}