public function LingotekManagementFormBase::batchFinished in Lingotek Translation 3.1.x
Same name and namespace in other branches
- 8.2 src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::batchFinished()
- 4.0.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::batchFinished()
- 3.0.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::batchFinished()
- 3.2.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::batchFinished()
- 3.3.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::batchFinished()
- 3.4.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::batchFinished()
- 3.5.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::batchFinished()
- 3.6.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::batchFinished()
- 3.7.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::batchFinished()
- 3.8.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::batchFinished()
Batch callback called when the batch finishes.
Parameters
$success:
$results:
$operations:
Return value
\Drupal\Core\Routing\LocalRedirectResponse
File
- src/
Form/ LingotekManagementFormBase.php, line 707
Class
- LingotekManagementFormBase
- Form for bulk management of content.
Namespace
Drupal\lingotek\FormCode
public function batchFinished($success, $results, $operations) {
if ($success) {
$batch =& batch_get();
$this
->messenger()
->addStatus('Operations completed.');
}
return new LocalRedirectResponse($batch['sets'][0]['batch_redirect']);
}