ChainedPlaceholderStrategy

Renders placeholders using a chain of placeholder strategies. Hierarchy class \Drupal\Core\Render\Placeholder\ChainedPlaceholderStrategy implements PlaceholderStrategyInterface File core/lib/Drupal/Core/Render/Placeholder/ChainedPlaceholderStrategy.php, line 8 Namespace Drupal\Core\Render\Placeholder Members Name Modifiers Type Description ChainedPlaceholderStrategy::$placeholderStrategies protected property An ordered list of placeholder strategy services. ChainedPlac

ChainedPlaceholderStrategy::processPlaceholders

public ChainedPlaceholderStrategy::processPlaceholders(array $placeholders) Processes placeholders to render them with different strategies. Parameters array $placeholders: The placeholders to process, with the keys being the markup for the placeholders and the values the corresponding render array describing the data to be rendered. Return value array The resulting placeholders, with a subset of the keys of $placeholders (and those being the markup for the placeholders) but with the correspo

ChainedPlaceholderStrategy::addPlaceholderStrategy

public ChainedPlaceholderStrategy::addPlaceholderStrategy(PlaceholderStrategyInterface $strategy) Adds a placeholder strategy to use. Parameters \Drupal\Core\Render\Placeholder\PlaceholderStrategyInterface $strategy: The strategy to add to the placeholder strategies. File core/lib/Drupal/Core/Render/Placeholder/ChainedPlaceholderStrategy.php, line 25 Class ChainedPlaceholderStrategy Renders placeholders using a chain of placeholder strategies. Namespace Drupal\Core\Render\Placeholder

ChainedFastBackendFactory::$consistentServiceName

The service name of the consistent backend factory. Type: string File core/lib/Drupal/Core/Cache/ChainedFastBackendFactory.php, line 19 Class ChainedFastBackendFactory Defines the chained fast cache backend factory. Namespace Drupal\Core\Cache Code protected $consistentServiceName;

ChainedFastBackendFactory

Defines the chained fast cache backend factory. Hierarchy class \Drupal\Core\Cache\ChainedFastBackendFactory implements CacheFactoryInterface uses ContainerAwareTrait File core/lib/Drupal/Core/Cache/ChainedFastBackendFactory.php, line 10 Namespace Drupal\Core\Cache Members Name Modifiers Type Description ChainedFastBackendFactory::$consistentServiceName protected property The service name of the consistent backend factory. ChainedFastBackendFactory::$fastServiceName

ChainedFastBackendFactory::$fastServiceName

The service name of the fast backend factory. Type: string File core/lib/Drupal/Core/Cache/ChainedFastBackendFactory.php, line 26 Class ChainedFastBackendFactory Defines the chained fast cache backend factory. Namespace Drupal\Core\Cache Code protected $fastServiceName;

ChainedFastBackend::setMultiple

public ChainedFastBackend::setMultiple(array $items) Store multiple items in the persistent cache. Parameters array $items: An array of cache items, keyed by cid. In the form: $items = array( $cid => array( // Required, will be automatically serialized if not a string. 'data' => $data, // Optional, defaults to CacheBackendInterface::CACHE_PERMANENT. 'expire' => CacheBackendInterface::CACHE_PERMANENT, // (optional) The cache tags for this item, see C

ChainedFastBackendFactory::get

public ChainedFastBackendFactory::get($bin) Instantiates a chained, fast cache backend class for a given cache bin. Parameters string $bin: The cache bin for which a cache backend object should be returned. Return value \Drupal\Core\Cache\CacheBackendInterface The cache backend object associated with the specified bin. Overrides CacheFactoryInterface::get File core/lib/Drupal/Core/Cache/ChainedFastBackendFactory.php, line 74 Class ChainedFastBackendFactory Defines the chained fast cache

ChainedFastBackend::__construct

public ChainedFastBackend::__construct(CacheBackendInterface $consistent_backend, CacheBackendInterface $fast_backend, $bin) Constructs a ChainedFastBackend object. Parameters \Drupal\Core\Cache\CacheBackendInterface $consistent_backend: The consistent cache backend. \Drupal\Core\Cache\CacheBackendInterface $fast_backend: The fast cache backend. string $bin: The cache bin for which the object is created. File core/lib/Drupal/Core/Cache/ChainedFastBackend.php, line 91 Class ChainedFastBacke

ChainedFastBackend::removeBin

public ChainedFastBackend::removeBin() Remove a cache bin. Overrides CacheBackendInterface::removeBin File core/lib/Drupal/Core/Cache/ChainedFastBackend.php, line 269 Class ChainedFastBackend Defines a backend with a fast and a consistent backend chain. Namespace Drupal\Core\Cache Code public function removeBin() { $this->consistentBackend->removeBin(); $this->fastBackend->removeBin(); }