public StorageComparer::hasChanges()
Checks if there are any operations with changes to process.
Until the changelist has been calculated this will always be FALSE.
bool TRUE if there are changes to process and FALSE if not.
Overrides StorageComparerInterface::hasChanges
\Drupal\Core\Config\StorageComparerInterface::createChangelist()
public function hasChanges() { foreach ($this->getAllCollectionNames() as $collection) { foreach (array('delete', 'create', 'update', 'rename') as $op) { if (!empty($this->changelist[$collection][$op])) { return TRUE; } } } return FALSE; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!StorageComparer.php/function/StorageComparer::hasChanges/8.1.x