function HtmlResponseSubscriber::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php \Drupal\Core\EventSubscriber\HtmlResponseSubscriber::__construct()
  2. 10 core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php \Drupal\Core\EventSubscriber\HtmlResponseSubscriber::__construct()
  3. 9 core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php \Drupal\Core\EventSubscriber\HtmlResponseSubscriber::__construct()
  4. 8.9.x core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php \Drupal\Core\EventSubscriber\HtmlResponseSubscriber::__construct()

Constructs a HtmlResponseSubscriber object.

Parameters

\Drupal\Core\Render\AttachmentsResponseProcessorInterface $htmlResponseAttachmentsProcessor: The HTML response attachments processor service.

File

core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php, line 22

Class

HtmlResponseSubscriber
Response subscriber to handle HTML responses.

Namespace

Drupal\Core\EventSubscriber

Code

public function __construct(protected AttachmentsResponseProcessorInterface $htmlResponseAttachmentsProcessor) {
}

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