You are here

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

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

Constructs an AmpHtmlResponseMarkupProcessor object.

Parameters

AMPService $amp_library_service: An amp library service.

File

src/Render/AmpHtmlResponseMarkupProcessor.php, line 73
Contains \Drupal\amp\Render\AmpHtmlResponseMarkupProcessor.

Class

AmpHtmlResponseMarkupProcessor
Processes markup of HTML responses.

Namespace

Drupal\amp\Render

Code

public function __construct(AMPService $amp_library_service, LoggerInterface $logger, ConfigFactoryInterface $configFactoryInterface) {
  $this->ampService = $amp_library_service;
  $this->logger = $logger;
  $this->configFactory = $configFactoryInterface;
  $this->ampConfig = $this->configFactory
    ->get('amp.settings');
}