You are here

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

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

Constructs a new EntityIsEventCheck object.

Parameters

\Drupal\rng\EventManagerInterface $event_manager: The RNG event manager.

File

src/Access/EntityIsEventCheck.php, line 31

Class

EntityIsEventCheck
Checks that an entity is an event type.

Namespace

Drupal\rng\Access

Code

public function __construct(EventManagerInterface $event_manager) {
  $this->eventManager = $event_manager;
}