function FileStorage::getCollectionDirectory
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\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 349
Class
- FileStorage
- Defines the file storage.
Namespace
Drupal\Core\ConfigCode
protected function getCollectionDirectory() {
if ($this->collection == StorageInterface::DEFAULT_COLLECTION) {
$dir = $this->directory;
}
else {
$dir = $this->directory . '/' . str_replace('.', '/', $this->collection);
}
return $dir;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.