function HtmlResponsePlaceholderStrategySubscriber::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/EventSubscriber/HtmlResponsePlaceholderStrategySubscriber.php \Drupal\Core\EventSubscriber\HtmlResponsePlaceholderStrategySubscriber::__construct()
- 10 core/lib/Drupal/Core/EventSubscriber/HtmlResponsePlaceholderStrategySubscriber.php \Drupal\Core\EventSubscriber\HtmlResponsePlaceholderStrategySubscriber::__construct()
- 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()
Constructs a HtmlResponsePlaceholderStrategySubscriber object.
Parameters
\Drupal\Core\Render\Placeholder\PlaceholderStrategyInterface $placeholderStrategy: The placeholder strategy to use.
File
-
core/
lib/ Drupal/ Core/ EventSubscriber/ HtmlResponsePlaceholderStrategySubscriber.php, line 28
Class
- HtmlResponsePlaceholderStrategySubscriber
- HTML response subscriber to allow for different placeholder strategies.
Namespace
Drupal\Core\EventSubscriberCode
public function __construct(protected PlaceholderStrategyInterface $placeholderStrategy) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.