public function FlowControllerSimple::needsEntityTypeUpdate in CMS Content Sync 2.1.x
@inheritDoc
Overrides IFlowController::needsEntityTypeUpdate
File
- src/
Controller/ FlowControllerSimple.php, line 338
Class
Namespace
Drupal\cms_content_sync\ControllerCode
public function needsEntityTypeUpdate() {
$old_versions = $this
->getEntityTypeConfig(null, null, false, false);
$new_versions = $this
->getEntityTypeConfig(null, null, false, true);
foreach ($old_versions as $entity_type_name => $bundles) {
foreach ($bundles as $bundle_name => $config) {
if ($config['version'] !== $new_versions[$entity_type_name][$bundle_name]['version']) {
return true;
}
}
}
return false;
}