You are here

public function FileStorage::getFilePath in Drupal 9

Same name and namespace in other branches
  1. 8 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();
}