public static function CacheRouterRebuildSubscriber::getSubscribedEvents in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/EventSubscriber/CacheRouterRebuildSubscriber.php \Drupal\Core\EventSubscriber\CacheRouterRebuildSubscriber::getSubscribedEvents()
File
- core/
lib/ Drupal/ Core/ EventSubscriber/ CacheRouterRebuildSubscriber.php, line 26
Class
- CacheRouterRebuildSubscriber
- Clear cache tags when the router is rebuilt.
Namespace
Drupal\Core\EventSubscriberCode
public static function getSubscribedEvents() {
$events = [];
// Act only when the router rebuild is finished.
$events[RoutingEvents::FINISHED][] = [
'onRouterFinished',
200,
];
return $events;
}