function StorageComparer::validateSiteUuid
Same name in other branches
- 9 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::validateSiteUuid()
- 10 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::validateSiteUuid()
- 11.x core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::validateSiteUuid()
Overrides StorageComparerInterface::validateSiteUuid
File
-
core/
lib/ Drupal/ Core/ Config/ StorageComparer.php, line 388
Class
- StorageComparer
- Defines a config storage comparer.
Namespace
Drupal\Core\ConfigCode
public function validateSiteUuid() {
$source = $this->sourceStorage
->read('system.site');
$target = $this->targetStorage
->read('system.site');
// It is possible that the storage does not contain system.site
// configuration. In such cases the site UUID cannot be valid.
return $source && $target && $source['uuid'] === $target['uuid'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.