W3cubDocs

/Drupal 8

public function FileStorage::getFilePath

public FileStorage::getFilePath($name)

Returns the path to the configuration file.

Return value

string The path to the configuration file.

File

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

Class

FileStorage
Defines the file storage.

Namespace

Drupal\Core\Config

Code

public function getFilePath($name) {
  return $this->getCollectionDirectory() . '/' . $name . '.' . static::getFileExtension();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!FileStorage.php/function/FileStorage::getFilePath/8.1.x