public static function FileStorageFactory::getActive in Drupal 8
Returns a FileStorage object working with the active config directory.
Return value
\Drupal\Core\Config\FileStorage FileStorage
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/ FileStorageFactory.php, line 20
Class
- FileStorageFactory
- Provides a factory for creating config file storage objects.
Namespace
Drupal\Core\ConfigCode
public static function getActive() {
return new FileStorage(config_get_config_directory(CONFIG_ACTIVE_DIRECTORY));
}