public function Configuration::build in Configuration Management 7.2
Build the configuration object based on the component name and in the identifier.
The build process implies get the structure of the configuration and save it into the $data attribute. Also, this function should look for the dependencies of this configuration if $include_dependencies is TRUE.
3 calls to Configuration::build()
- Configuration::export in lib/
Drupal/ configuration/ Config/ Configuration.php - Configuration::loadFromActiveStore in lib/
Drupal/ configuration/ Config/ Configuration.php - Load a configurations from the database.
- Configuration::printRaw in lib/
Drupal/ configuration/ Config/ Configuration.php - Print the configuration as plain text formatted to use in a tar file.
File
- lib/
Drupal/ configuration/ Config/ Configuration.php, line 398 - Definition of Drupal\configuration\Config\Configuration.
Class
Namespace
Drupal\configuration\ConfigCode
public function build($include_dependencies = TRUE) {
$this
->prepareBuild();
$this->broken = $this->data === NULL;
if ($this->broken) {
drupal_set_message(t('Configuration %component is broken.', array(
'%component' => $this
->getUniqueId(),
)), 'error');
}
if ($include_dependencies) {
$this
->findDependencies();
}
if (empty($this->broken)) {
$this
->findRequiredModules();
}
$this->built = TRUE;
return $this;
}