function CachedStrategy::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Render/Placeholder/CachedStrategy.php \Drupal\Core\Render\Placeholder\CachedStrategy::__construct()

File

core/lib/Drupal/Core/Render/Placeholder/CachedStrategy.php, line 14

Class

CachedStrategy
Looks up placeholders in the render cache and returns those we could find.

Namespace

Drupal\Core\Render\Placeholder

Code

public function __construct(protected readonly PlaceholderStrategyInterface $placeholderStrategy, protected readonly RenderCacheInterface $renderCache) {
}

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