You are here

function EventManager::__construct in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/EventManager.php \Drupal\rng\EventManager::__construct()
  2. 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\rng

Code

function __construct(EntityManagerInterface $entity_manager) {
  $this->eventTypeStorage = $entity_manager
    ->getStorage('event_type');
}