You are here

public static function Migration::getFullFlowStatus in CMS Content Sync 2.0.x

Same name and namespace in other branches
  1. 2.1.x src/Controller/Migration.php \Drupal\cms_content_sync\Controller\Migration::getFullFlowStatus()
1 call to Migration::getFullFlowStatus()
Embed::migrate in src/Controller/Embed.php

File

src/Controller/Migration.php, line 117

Class

Migration
Migration Embed provides methods and a UI to migrate from Content Sync v1 to Content Sync v2.

Namespace

Drupal\cms_content_sync\Controller

Code

public static function getFullFlowStatus($flow) {
  $status = self::getFlowStatus($flow);
  if (Flow::V2_STATUS_EXPORTED === $status) {
    return self::getStoredFlowStatus($flow->id);
  }
  return [
    'exported' => Flow::V2_STATUS_ACTIVE === $status,
    'active' => Flow::V2_STATUS_ACTIVE === $status,
    'skipTest' => false,
    'skipPush' => false,
    'skipPull' => false,
    'types' => [],
  ];
}