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
Namespace
Drupal\configuration\ConfigCode
public function addToOptionalConfigurations(Configuration $config) {
if (!isset($this->optional_configurations)) {
$this->optional_configurations = array();
}
$this->optional_configurations[$config
->getUniqueId()] = $config;
return $this;
}