public function RngRequestSubscriber::__construct in RNG - Events and Registrations 3.x
Same name and namespace in other branches
- 8.2 src/EventSubscriber/RngRequestSubscriber.php \Drupal\rng\EventSubscriber\RngRequestSubscriber::__construct()
- 8 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\EventSubscriberCode
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;
}