public function LinkCleanUp::batchFinished in Link checker 8
Finished callback for batch.
File
- src/
LinkCleanUp.php, line 161
Class
- LinkCleanUp
- Class LinkCleanUp.
Namespace
Drupal\linkcheckerCode
public function batchFinished($success) {
if ($success) {
$this
->messenger()
->addStatus($this
->t('Links were successfully checked.'));
}
else {
$this
->messenger()
->addError($this
->t('Links were not checked.'));
}
}