You are here

public function HtmlResponsePlaceholderStrategySubscriber::__construct in Zircon Profile 8

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

Constructs a HtmlResponsePlaceholderStrategySubscriber object.

Parameters

\Drupal\Core\Render\Placeholder\PlaceholderStrategyInterface $placeholder_strategy: The placeholder strategy to use.

File

core/lib/Drupal/Core/EventSubscriber/HtmlResponsePlaceholderStrategySubscriber.php, line 40
Contains \Drupal\Core\EventSubscriber\HtmlResponsePlaceholderStrategySubscriber.

Class

HtmlResponsePlaceholderStrategySubscriber
HTML response subscriber to allow for different placeholder strategies.

Namespace

Drupal\Core\EventSubscriber

Code

public function __construct(PlaceholderStrategyInterface $placeholder_strategy) {
  $this->placeholderStrategy = $placeholder_strategy;
}