protected function CacheBackendDecorator::decorate in Multiversion 8
Helper method to decorate a cache ID.
Parameters
string $cid:
Return value
string
7 calls to CacheBackendDecorator::decorate()
- CacheBackendDecorator::delete in src/
CacheBackendDecorator.php - Deletes an item from the cache.
- CacheBackendDecorator::deleteMultiple in src/
CacheBackendDecorator.php - Deletes multiple items from the cache.
- CacheBackendDecorator::get in src/
CacheBackendDecorator.php - Returns data from the persistent cache.
- CacheBackendDecorator::getMultiple in src/
CacheBackendDecorator.php - Returns data from the persistent cache when given an array of cache IDs.
- CacheBackendDecorator::invalidate in src/
CacheBackendDecorator.php - Marks a cache item as invalid.
File
- src/
CacheBackendDecorator.php, line 37
Class
Namespace
Drupal\multiversionCode
protected function decorate($cid) {
return "{$cid}:" . $this->workspaceManager
->getActiveWorkspaceId();
}