You are here

public function AmpHtmlResponseSubscriber::__construct in Accelerated Mobile Pages (AMP) 8

Same name and namespace in other branches
  1. 8.2 src/EventSubscriber/AmpHtmlResponseSubscriber.php \Drupal\amp\EventSubscriber\AmpHtmlResponseSubscriber::__construct()

Constructs an AmpHtmlResponseSubscriber object.

Parameters

\Drupal\amp\Render\AmpHtmlResponseMarkupProcessor $amp_html_response_markup_processor: The HTML response attachments processor service.

File

src/EventSubscriber/AmpHtmlResponseSubscriber.php, line 42
Contains \Drupal\amp\EventSubscriber\AmpHtmlResponseSubscriber.

Class

AmpHtmlResponseSubscriber
Response subscriber to handle amp HTML responses.

Namespace

Drupal\amp\EventSubscriber

Code

public function __construct(AmpHtmlResponseMarkupProcessor $amp_html_response_markup_processor, AmpContext $amp_context) {
  $this->ampHtmlResponseMarkupProcessor = $amp_html_response_markup_processor;
  $this->ampContext = $amp_context;
}