function PlaceholderGenerator::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Render/PlaceholderGenerator.php \Drupal\Core\Render\PlaceholderGenerator::__construct()
  2. 10 core/lib/Drupal/Core/Render/PlaceholderGenerator.php \Drupal\Core\Render\PlaceholderGenerator::__construct()
  3. 9 core/lib/Drupal/Core/Render/PlaceholderGenerator.php \Drupal\Core\Render\PlaceholderGenerator::__construct()
  4. 8.9.x core/lib/Drupal/Core/Render/PlaceholderGenerator.php \Drupal\Core\Render\PlaceholderGenerator::__construct()

Constructs a new Placeholder service.

Parameters

\Drupal\Core\Cache\Context\CacheContextsManager $cacheContextsManager: The cache contexts manager service.

array $rendererConfig: The renderer configuration array.

File

core/lib/Drupal/Core/Render/PlaceholderGenerator.php, line 25

Class

PlaceholderGenerator
Turns a render array into a placeholder.

Namespace

Drupal\Core\Render

Code

public function __construct(protected CacheContextsManager $cacheContextsManager, protected array $rendererConfig) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.