You are here

public function StorageComparer::validateSiteUuid in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::validateSiteUuid()

Validates that the system.site::uuid in the source and target match.

Return value

bool TRUE if identical, FALSE if not.

Overrides StorageComparerInterface::validateSiteUuid

File

core/lib/Drupal/Core/Config/StorageComparer.php, line 397
Contains \Drupal\Core\Config\StorageComparer.

Class

StorageComparer
Defines a config storage comparer.

Namespace

Drupal\Core\Config

Code

public function validateSiteUuid() {
  $source = $this->sourceStorage
    ->read('system.site');
  $target = $this->targetStorage
    ->read('system.site');
  return $source['uuid'] === $target['uuid'];
}