public static function Migration::getFlowStatus in CMS Content Sync 2.1.x
Same name and namespace in other branches
- 2.0.x src/Controller/Migration.php \Drupal\cms_content_sync\Controller\Migration::getFlowStatus()
2 calls to Migration::getFlowStatus()
- Flow::getV2Status in src/
Entity/ Flow.php - Migration::getFullFlowStatus in src/
Controller/ Migration.php
File
- src/
Controller/ Migration.php, line 134
Class
- Migration
- Migration Embed provides methods and a UI to migrate from Content Sync v1 to Content Sync v2.
Namespace
Drupal\cms_content_sync\ControllerCode
public static function getFlowStatus($flow) {
$status = self::getStoredFlowStatus($flow->id);
if (empty($status) || !isset($status['active'])) {
foreach ($flow
->getController()
->getUsedPools() as $pool) {
if ((bool) $pool->backend_url) {
return Flow::V2_STATUS_NONE;
}
}
return Flow::V2_STATUS_ACTIVE;
}
if ($status['active']) {
return Flow::V2_STATUS_ACTIVE;
}
return Flow::V2_STATUS_EXPORTED;
}