function ActiveLinkResponseFilter::getSubscribedEvents
Same name in other branches
- 8.9.x core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php \Drupal\Core\EventSubscriber\ActiveLinkResponseFilter::getSubscribedEvents()
- 10 core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php \Drupal\Core\EventSubscriber\ActiveLinkResponseFilter::getSubscribedEvents()
- 11.x core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php \Drupal\Core\EventSubscriber\ActiveLinkResponseFilter::getSubscribedEvents()
File
-
core/
lib/ Drupal/ Core/ EventSubscriber/ ActiveLinkResponseFilter.php, line 248
Class
- ActiveLinkResponseFilter
- Subscribes to filter HTML responses, to set the 'is-active' class on links.
Namespace
Drupal\Core\EventSubscriberCode
public static function getSubscribedEvents() {
// Should run after any other response subscriber that modifies the markup.
$events[KernelEvents::RESPONSE][] = [
'onResponse',
-512,
];
return $events;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.