function HtmxContentViewSubscriber::getSubscribedEvents
File
-
core/
lib/ Drupal/ Core/ EventSubscriber/ HtmxContentViewSubscriber.php, line 62
Class
- HtmxContentViewSubscriber
- View subscriber rendering main content from `_htmx_route` option routes.
Namespace
Drupal\Core\EventSubscriberCode
public static function getSubscribedEvents() : array {
// MainContentViewSubscriber has a default priority of 0.
// Set a higher priority to ensure that this subscriber runs before it.
$events[KernelEvents::VIEW][] = [
'renderHtmxResponse',
100,
];
return $events;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.