You are here

public static function RssResponseRelativeUrlFilter::getSubscribedEvents in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/EventSubscriber/RssResponseRelativeUrlFilter.php \Drupal\Core\EventSubscriber\RssResponseRelativeUrlFilter::getSubscribedEvents()

File

core/lib/Drupal/Core/EventSubscriber/RssResponseRelativeUrlFilter.php, line 73

Class

RssResponseRelativeUrlFilter
Subscribes to filter RSS responses, to make relative URIs absolute.

Namespace

Drupal\Core\EventSubscriber

Code

public static function getSubscribedEvents() {

  // Should run after any other response subscriber that modifies the markup.
  // @see \Drupal\Core\EventSubscriber\ActiveLinkResponseFilter
  $events[KernelEvents::RESPONSE][] = [
    'onResponse',
    -512,
  ];
  return $events;
}