class CachedStrategy

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

Hierarchy

Expanded class hierarchy of CachedStrategy

File

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

Namespace

Drupal\Core\Render\Placeholder
View source
class CachedStrategy implements PlaceholderStrategyInterface {
    public function __construct(PlaceholderStrategyInterface $placeholderStrategy, RenderCacheInterface $renderCache) {
    }
    
    /**
     * {@inheritdoc}
     */
    public function processPlaceholders(array $placeholders) {
        return $this->renderCache
            ->getMultiple($placeholders);
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
CachedStrategy::processPlaceholders public function Processes placeholders to render them with different strategies. Overrides PlaceholderStrategyInterface::processPlaceholders
CachedStrategy::__construct public function

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