You are here

protected function VariableConfiguration::prepareBuild in Configuration Management 7.2

Implements Drupal\configuration\Config\Configuration::prepareBuild().

Overrides Configuration::prepareBuild

File

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

Class

VariableConfiguration

Namespace

Drupal\configuration\Config

Code

protected function prepareBuild() {
  $this->data = array(
    'name' => $this->variable_name,
    'content' => variable_get($this
      ->getIdentifier(), NULL),
  );
  return $this;
}