public static function HtmlResponseSubscriber::getSubscribedEvents in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php \Drupal\Core\EventSubscriber\HtmlResponseSubscriber::getSubscribedEvents()
File
- core/
lib/ Drupal/ Core/ EventSubscriber/ HtmlResponseSubscriber.php, line 51
Class
- HtmlResponseSubscriber
- Response subscriber to handle HTML responses.
Namespace
Drupal\Core\EventSubscriberCode
public static function getSubscribedEvents() {
$events[KernelEvents::RESPONSE][] = [
'onRespond',
];
return $events;
}