CachedStorage::getCollectionPrefix

protected CachedStorage::getCollectionPrefix()

Returns a cache ID prefix to use for the collection.

Return value

string The cache ID prefix.

File

core/lib/Drupal/Core/Config/CachedStorage.php, line 294

Class

CachedStorage
Defines the cached storage.

Namespace

Drupal\Core\Config

Code

protected function getCollectionPrefix() {
  $collection = $this->storage->getCollectionName();
  if ($collection == StorageInterface::DEFAULT_COLLECTION) {
    return '';
  }
  return $collection . ':';
}
doc_Drupal
2016-10-29 08:49:32
Comments
Leave a Comment

Please login to continue.