function FileStorageFactory::getActive

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\Config

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.