You are here

public function VariableConfiguration::saveToActiveStore in Configuration Management 7.2

Overrides Drupal\configuration\Config\Configuration::saveToActiveStore().

Overrides Configuration::saveToActiveStore

File

lib/Drupal/configuration/Config/VariableConfiguration.php, line 124
Definition of Drupal\configuration\Config\VariableConfiguration.

Class

VariableConfiguration

Namespace

Drupal\configuration\Config

Code

public function saveToActiveStore(ConfigIteratorSettings &$settings) {
  $variable = $this
    ->getData();
  variable_set($variable['name'], $variable['content']);
  $settings
    ->addInfo('imported', $this
    ->getUniqueId());
}