public function StorageComparer::hasChanges in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::hasChanges()
- 10 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::hasChanges()
Checks if there are any operations with changes to process.
Until the changelist has been calculated this will always be FALSE.
Return value
bool TRUE if there are changes to process and FALSE if not.
Overrides StorageComparerInterface::hasChanges
See also
\Drupal\Core\Config\StorageComparerInterface::createChangelist()
File
- core/
lib/ Drupal/ Core/ Config/ StorageComparer.php, line 374
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;
}