You are here

public static function FlowExport::batchFinished in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x 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 89

Class

FlowExport
Push changes controller.

Namespace

Drupal\cms_content_sync\Controller

Code

public static function batchFinished($success, $results, $operations) {
  if ($success) {
    $message = t('Flow has been exported.');
  }
  else {
    $message = t('Flow export failed.');
  }
  \Drupal::messenger()
    ->addMessage($message);
}