You are here

public function StorageComparer::hasChanges in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::hasChanges()
  2. 9 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::hasChanges()

File

core/lib/Drupal/Core/Config/StorageComparer.php, line 368

Class

StorageComparer
Defines a config storage comparer.

Namespace

Drupal\Core\Config

Code

public function hasChanges() {
  foreach ($this
    ->getAllCollectionNames() as $collection) {
    foreach ([
      'delete',
      'create',
      'update',
      'rename',
    ] as $op) {
      if (!empty($this->changelist[$collection][$op])) {
        return TRUE;
      }
    }
  }
  return FALSE;
}