You are here

public function Configuration::addToOptionalConfigurations in Configuration Management 7.2

Add a new child configuration for this configuration.

File

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

Class

Configuration

Namespace

Drupal\configuration\Config

Code

public function addToOptionalConfigurations(Configuration $config) {
  if (!isset($this->optional_configurations)) {
    $this->optional_configurations = array();
  }
  $this->optional_configurations[$config
    ->getUniqueId()] = $config;
  return $this;
}