You are here

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

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

Constructs a new EventManager object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

src/EventManager.php, line 39

Class

EventManager
Event manager for RNG.

Namespace

Drupal\rng

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->eventTypeStorage = $entity_type_manager
    ->getStorage('rng_event_type');
}