function FileStorage::getFilePath

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::getFilePath()
  2. 10 core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::getFilePath()
  3. 11.x core/lib/Drupal/Core/Config/FileStorage.php \Drupal\Core\Config\FileStorage::getFilePath()

Returns the path to the configuration file.

Return value

string The path to the configuration file.

5 calls to FileStorage::getFilePath()
FileStorage::delete in core/lib/Drupal/Core/Config/FileStorage.php
Deletes a configuration object from the storage.
FileStorage::exists in core/lib/Drupal/Core/Config/FileStorage.php
Returns whether a configuration object exists.
FileStorage::read in core/lib/Drupal/Core/Config/FileStorage.php
Implements Drupal\Core\Config\StorageInterface::read().
FileStorage::rename in core/lib/Drupal/Core/Config/FileStorage.php
Renames a configuration object in the storage.
FileStorage::write in core/lib/Drupal/Core/Config/FileStorage.php
Writes configuration data to the storage.
1 method overrides FileStorage::getFilePath()
InstallStorage::getFilePath in core/lib/Drupal/Core/Config/InstallStorage.php
Overrides Drupal\Core\Config\FileStorage::getFilePath().

File

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

Class

FileStorage
Defines the file storage.

Namespace

Drupal\Core\Config

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.