protected function BlockManager::setCachedDefinitions in Multiversion 8
Same name and namespace in other branches
- 8.2 src/Block/BlockManager.php \Drupal\multiversion\Block\BlockManager::setCachedDefinitions()
Sets a cache of plugin definitions for the decorated discovery class.
Parameters
array $definitions: List of definitions to store in cache.
Overrides DefaultPluginManager::setCachedDefinitions
File
- src/
Block/ BlockManager.php, line 72
Class
- BlockManager
- Adds the workspace ID to the cache key.
Namespace
Drupal\multiversion\BlockCode
protected function setCachedDefinitions($definitions) {
$this->cacheKey = $this->workspaceCacheKeyPrefix . $this->workspaceManager
->getActiveWorkspaceId();
parent::setCachedDefinitions($definitions);
}