function StorageComparer::hasChanges
Same name in other branches
- 9 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::hasChanges()
- 8.9.x core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::hasChanges()
- 11.x core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::hasChanges()
Overrides StorageComparerInterface::hasChanges
File
-
core/
lib/ Drupal/ Core/ Config/ StorageComparer.php, line 418
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.