public static function BootstrapConfigStorageFactory::getFileStorage

public static BootstrapConfigStorageFactory::getFileStorage()

Returns a File-based configuration storage implementation.

If there is no active configuration directory calling this method will result in an error.

Return value

\Drupal\Core\Config\FileStorage

Throws

\Exception

Deprecated

in Drupal 8.0.x and will be removed before 9.0.0. Drupal core no longer creates an active directory.

File

core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php, line 56

Class

BootstrapConfigStorageFactory
Defines a factory for retrieving the config storage used pre-kernel.

Namespace

Drupal\Core\Config

Code

public static function getFileStorage() {
  return new FileStorage(config_get_config_directory(CONFIG_ACTIVE_DIRECTORY));
}

© 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!BootstrapConfigStorageFactory.php/function/BootstrapConfigStorageFactory::getFileStorage/8.1.x