public function StorageComparer::hasChanges in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::hasChanges()
- 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\ConfigCode
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;
}