1 config.inc | public Config::__construct($name, ConfigStorageInterface $storage) |
Constructs a configuration object.
Parameters
string $name: The name of the configuration object being constructed.
ConfigStorageInterface $storage: A storage controller object to use for reading and writing the configuration data.
File
- core/
includes/ config.inc, line 481 - This is the API for configuration storage.
Class
- Config
- Defines the default configuration object.
Code
public function __construct($name, ConfigStorageInterface $storage) {
global $config;
$this->name = $name;
$this->storage = $storage;
$this->overrides = isset($config[$name]) ? $config[$name] : NULL;
}