public static function RngRequestSubscriber::getSubscribedEvents in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/EventSubscriber/RngRequestSubscriber.php \Drupal\rng\EventSubscriber\RngRequestSubscriber::getSubscribedEvents()
- 3.x src/EventSubscriber/RngRequestSubscriber.php \Drupal\rng\EventSubscriber\RngRequestSubscriber::getSubscribedEvents()
File
- src/
EventSubscriber/ RngRequestSubscriber.php, line 95
Class
- RngRequestSubscriber
- Runs tasks for RNG related to the request.
Namespace
Drupal\rng\EventSubscriberCode
public static function getSubscribedEvents() {
// Should go before other subscribers start to write their caches. Notably
// before \Drupal\Core\EventSubscriber\KernelDestructionSubscriber to
// prevent instantiation of destructed services.
$events[KernelEvents::TERMINATE][] = [
'onKernelTerminate',
300,
];
return $events;
}