public static function AjaxResponseSubscriber::getSubscribedEvents in Views Ajax Get 8
Same name and namespace in other branches
- 2.0.x src/EventSubscriber/AjaxResponseSubscriber.php \Drupal\views_ajax_get\EventSubscriber\AjaxResponseSubscriber::getSubscribedEvents()
File
- src/
EventSubscriber/ AjaxResponseSubscriber.php, line 37
Class
- AjaxResponseSubscriber
- Adding the headers for cache control so that these requests can be cached.
Namespace
Drupal\views_ajax_get\EventSubscriberCode
public static function getSubscribedEvents() {
$events[KernelEvents::RESPONSE][] = [
'onResponse',
0,
];
return $events;
}