You are here

public function Configuration::__construct in Configuration Management 7.2

Constructor.

Parameters

string $identifier: The identifier of the configurations. Usually a machine name.

string $component: The component of this configuration. i.e content_type, field, variable, etc.

5 calls to Configuration::__construct()
ContentTypeConfiguration::__construct in lib/Drupal/configuration/Config/ContentTypeConfiguration.php
Overrides Drupal\configuration\Config\Configuration::__construct().
CtoolsConfiguration::__construct in lib/Drupal/configuration/Config/CtoolsConfiguration.php
Overrides Drupal\configuration\Config\Configuration::__construct().
EntityApiConfiguration::__construct in lib/Drupal/configuration/Config/EntityApiConfiguration.php
Overrides Drupal\configuration\Config\Configuration::__construct().
MenuLinkConfiguration::__construct in lib/Drupal/configuration/Config/MenuLinkConfiguration.php
Overrides Drupal\configuration\Config\Configuration::__construct().
VariableConfiguration::__construct in lib/Drupal/configuration/Config/VariableConfiguration.php
Overrides Drupal\configuration\Config\Configuration::__construct().
5 methods override Configuration::__construct()
ContentTypeConfiguration::__construct in lib/Drupal/configuration/Config/ContentTypeConfiguration.php
Overrides Drupal\configuration\Config\Configuration::__construct().
CtoolsConfiguration::__construct in lib/Drupal/configuration/Config/CtoolsConfiguration.php
Overrides Drupal\configuration\Config\Configuration::__construct().
EntityApiConfiguration::__construct in lib/Drupal/configuration/Config/EntityApiConfiguration.php
Overrides Drupal\configuration\Config\Configuration::__construct().
MenuLinkConfiguration::__construct in lib/Drupal/configuration/Config/MenuLinkConfiguration.php
Overrides Drupal\configuration\Config\Configuration::__construct().
VariableConfiguration::__construct in lib/Drupal/configuration/Config/VariableConfiguration.php
Overrides Drupal\configuration\Config\Configuration::__construct().

File

lib/Drupal/configuration/Config/Configuration.php, line 120
Definition of Drupal\configuration\Config\Configuration.

Class

Configuration

Namespace

Drupal\configuration\Config

Code

public function __construct($identifier, $component = '') {
  $this->identifier = $identifier;
  $this->storage = static::getStorageInstance($component);
  $this->storage
    ->setFileName($this
    ->getFileName());
}