public static function BootstrapConfigStorageFactory::getFileStorage in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php \Drupal\Core\Config\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 61 - Contains \Drupal\Core\Config\BootstrapConfigStorageFactory.
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));
}