public function FlowControllerPerBundle::updateEntityTypeVersions in CMS Content Sync 2.1.x
Cache the current version per entity type.
Return value
void
Overrides IFlowController::updateEntityTypeVersions
File
- src/
Controller/ FlowControllerPerBundle.php, line 263
Class
Namespace
Drupal\cms_content_sync\ControllerCode
public function updateEntityTypeVersions() {
// Get all entity type configurations.
$entity_type_bundle_configs = $this
->getEntityTypeConfig(NULL, NULL, TRUE);
$updated = false;
// Update versions.
foreach ($entity_type_bundle_configs as $entity_type_name => $bundles) {
foreach ($bundles as $bundle_name => $config) {
$updated |= $this
->updateEntityTypeBundleVersion($entity_type_name, $bundle_name);
}
}
if ($updated) {
$this->flow
->save();
}
}