function HtmlResponsePlaceholderStrategySubscriber::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/EventSubscriber/HtmlResponsePlaceholderStrategySubscriber.php \Drupal\Core\EventSubscriber\HtmlResponsePlaceholderStrategySubscriber::__construct()
- 8.9.x core/lib/Drupal/Core/EventSubscriber/HtmlResponsePlaceholderStrategySubscriber.php \Drupal\Core\EventSubscriber\HtmlResponsePlaceholderStrategySubscriber::__construct()
- 11.x 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\EventSubscriberCode
public function __construct(PlaceholderStrategyInterface $placeholder_strategy) {
$this->placeholderStrategy = $placeholder_strategy;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.