public static function PathautoBulkUpdateForm::batchFinished in Pathauto 8
Batch finished callback.
File
- src/
Form/ PathautoBulkUpdateForm.php, line 164
Class
- PathautoBulkUpdateForm
- Configure file system settings for this site.
Namespace
Drupal\pathauto\FormCode
public static function batchFinished($success, $results, $operations) {
if ($success) {
if ($results['updates']) {
\Drupal::service('messenger')
->addMessage(\Drupal::translation()
->formatPlural($results['updates'], 'Generated 1 URL alias.', 'Generated @count URL aliases.'));
}
else {
\Drupal::service('messenger')
->addMessage(t('No new URL aliases to generate.'));
}
}
else {
$error_operation = reset($operations);
\Drupal::service('messenger')
->addMessage(t('An error occurred while processing @operation with arguments : @args'), [
'@operation' => $error_operation[0],
'@args' => print_r($error_operation[0]),
]);
}
}