public static function BootstrapConfigStorageFactory::getFileStorage in Drupal 8
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.0 and is removed from drupal: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\ConfigCode
public static function getFileStorage() {
return new FileStorage(config_get_config_directory(CONFIG_ACTIVE_DIRECTORY));
}