function 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\EventSubscriberCode
public function __construct(PlaceholderStrategyInterface $placeholder_strategy) {
$this->placeholderStrategy = $placeholder_strategy;
}