You are here

public static function ProcessForm::batchFinished in Module Builder 8.3

Implements callback_batch_finished().

1 call to ProcessForm::batchFinished()
ProcessFormExtra::batchFinished in module_builder_devel/src/Form/ProcessFormExtra.php
Implements callback_batch_finished().
1 method overrides ProcessForm::batchFinished()
ProcessFormExtra::batchFinished in module_builder_devel/src/Form/ProcessFormExtra.php
Implements callback_batch_finished().

File

src/Form/ProcessForm.php, line 251

Class

ProcessForm
Form for running the DCB analysis process.

Namespace

Drupal\module_builder\Form

Code

public static function batchFinished($success, $results, $operations) {
  if (isset($results['errors'])) {
    foreach ($results['errors'] as $error_message) {
      \Drupal::messenger()
        ->addError(t("Error with a code analysis process: @message", [
        '@message' => $error_message,
      ]));
    }
  }
  \Drupal::messenger()
    ->addStatus(t("Finished analysing site code. See results below for details."));
}