You are here

public function RngRequestSubscriber::__construct in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/EventSubscriber/RngRequestSubscriber.php \Drupal\rng\EventSubscriber\RngRequestSubscriber::__construct()
  2. 3.x src/EventSubscriber/RngRequestSubscriber.php \Drupal\rng\EventSubscriber\RngRequestSubscriber::__construct()

Constructs a new RngRequestSubscriber.

Parameters

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

\Drupal\rng\RngEntityModelInterface: The RNG entity model manager.

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

File

src/EventSubscriber/RngRequestSubscriber.php, line 48

Class

RngRequestSubscriber
Runs tasks for RNG related to the request.

Namespace

Drupal\rng\EventSubscriber

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, RngEntityModelInterface $rng_entity_model, EventManagerInterface $event_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->rngEntityModel = $rng_entity_model;
  $this->eventManager = $event_manager;
}