CachedStrategy.php
Namespace
Drupal\Core\Render\PlaceholderFile
-
core/
lib/ Drupal/ Core/ Render/ Placeholder/ CachedStrategy.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Core\Render\Placeholder;
use Drupal\Core\Render\RenderCacheInterface;
/**
* Looks up placeholders in the render cache and returns those we could find.
*/
class CachedStrategy implements PlaceholderStrategyInterface {
public function __construct(PlaceholderStrategyInterface $placeholderStrategy, RenderCacheInterface $renderCache) {
}
/**
* {@inheritdoc}
*/
public function processPlaceholders(array $placeholders) {
return $this->renderCache
->getMultiple($placeholders);
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
CachedStrategy | Looks up placeholders in the render cache and returns those we could find. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.