You are here

public static function FlowExport::batchFinished in CMS Content Sync 2.1.x

Same name and namespace in other branches
  1. 8 src/Controller/FlowExport.php \Drupal\cms_content_sync\Controller\FlowExport::batchFinished()
  2. 2.0.x src/Controller/FlowExport.php \Drupal\cms_content_sync\Controller\FlowExport::batchFinished()

Batch export finished callback.

Parameters

$success:

$results:

$operations:

File

src/Controller/FlowExport.php, line 101

Class

FlowExport
Push changes controller.

Namespace

Drupal\cms_content_sync\Controller

Code

public static function batchFinished($success, $results, $operations) {

  // Disable unused Flows.
  SyncCoreFlowExport::deleteUnusedFlows();
  if ($success) {
    $message = t('Flow has been exported.');
  }
  else {
    $message = t('Flow export failed.');
  }
  \Drupal::messenger()
    ->addMessage($message);
}