public function Configuration::buildHash in Configuration Management 7.2
Create a unique hash for this configuration based on the data, dependencies, optional configurations and modules required to use this configuration. Use getHash() after call this function.
3 calls to Configuration::buildHash()
- 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 419 - Definition of Drupal\configuration\Config\Configuration.
Class
Namespace
Drupal\configuration\ConfigCode
public function buildHash() {
if ($this->broken) {
$this
->setHash('Broken Configuration');
return $this;
}
$this->storage
->setApiVersion(ConfigurationManagement::api)
->setData($this->data)
->setKeysToExport($this
->getKeysToExport())
->setDependencies(drupal_map_assoc(array_keys($this
->getDependencies())))
->setOptionalConfigurations(drupal_map_assoc(array_keys($this
->getOptionalConfigurations())))
->setModules(array_keys($this
->getRequiredModules()));
$this->storage
->getDataToSave();
$this
->setHash($this->storage
->getHash());
return $this;
}