function HtmxContentViewSubscriber::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/EventSubscriber/HtmxContentViewSubscriber.php \Drupal\Core\EventSubscriber\HtmxContentViewSubscriber::__construct()

File

core/lib/Drupal/Core/EventSubscriber/HtmxContentViewSubscriber.php, line 26

Class

HtmxContentViewSubscriber
View subscriber rendering main content from `_htmx_route` option routes.

Namespace

Drupal\Core\EventSubscriber

Code

public function __construct(#[AutowireServiceClosure('main_content_renderer.htmx')] protected \Closure $htmxRenderer, protected RouteMatchInterface $routeMatch) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.