function EntityDefinitionUpdateManager::needsUpdates

Checks if there are any definition updates that need to be applied.

Return value

bool TRUE if updates are needed.

Overrides EntityDefinitionUpdateManagerInterface::needsUpdates

File

core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php, line 78

Class

EntityDefinitionUpdateManager
Manages entity definition updates.

Namespace

Drupal\Core\Entity

Code

public function needsUpdates() {
  return (bool) $this->getChangeList();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.