You are here

public function HtmlResponsePlaceholderStrategySubscriber::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 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 35

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;
}