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)); }
Please login to continue.