FileStorage::getCollectionDirectory

protected FileStorage::getCollectionDirectory()

Gets the directory for the collection.

Return value

string The directory for the collection.

File

core/lib/Drupal/Core/Config/FileStorage.php, line 351

Class

FileStorage
Defines the file storage.

Namespace

Drupal\Core\Config

Code

protected function getCollectionDirectory() {
  if ($this->collection == StorageInterface::DEFAULT_COLLECTION) {
    $dir = $this->directory;
  }
  else {
    $dir = $this->directory . '/' . str_replace('.', '/', $this->collection);
  }
  return $dir;
}
doc_Drupal
2016-10-29 09:13:41
Comments
Leave a Comment

Please login to continue.