You are here

public function LingotekManagementForm::batchFinished in Lingotek Translation 8

File

src/Form/LingotekManagementForm.php, line 501
Contains \Drupal\Lingotek\Form\LingotekManagementForm.

Class

LingotekManagementForm
Form for bulk management of content.

Namespace

Drupal\lingotek\Form

Code

public function batchFinished($success, $results, $operations) {
  if ($success) {
    $batch =& batch_get();
    drupal_set_message('Operations completed.');
  }
  return new LocalRedirectResponse($batch['sets'][0]['batch_redirect']);
}