public function Config::__construct

Constructs a configuration object.

Parameters

string $name: The name of the configuration object being constructed.

\Drupal\Core\Config\StorageInterface $storage: A storage controller object to use for reading and writing the configuration data.

\Drupal\Core\Config\Context\ContextInterface $context: The configuration context used for this configuration object.

File

drupal/core/lib/Drupal/Core/Config/Config.php, line 91
Definition of Drupal\Core\Config\Config.

Class

Config
Defines the default configuration object.

Namespace

Drupal\Core\Config

Code

public function __construct($name, StorageInterface $storage, ContextInterface $context) {
  $this->name = $name;
  $this->storage = $storage;
  $this->context = $context;
}