function ActiveLinkResponseFilter::getSubscribedEvents
Same name in other branches
- 9 core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php \Drupal\Core\EventSubscriber\ActiveLinkResponseFilter::getSubscribedEvents()
- 8.9.x 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 252
Class
- ActiveLinkResponseFilter
- Subscribes to filter HTML responses, to set attributes on active links.
Namespace
Drupal\Core\EventSubscriberCode
public static function getSubscribedEvents() : array {
// 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.