diff --git a/core/includes/form.inc b/core/includes/form.inc index 9ff0e2b..a3c6572 100644 --- a/core/includes/form.inc +++ b/core/includes/form.inc @@ -369,7 +369,7 @@ function template_preprocess_form(&$variables) { if (!empty($error_links)) { // We need to pass this through String::format() so drupal_set_message() // doesn't encode the links. - $message = \Drupal::translation()->formatPlural(count($error_links), '1 error has been found: @errors', '@count errors have been found: !errors', [ + $message = \Drupal::translation()->formatPlural(count($error_links), '1 error has been found: !errors', '@count errors have been found: !errors', [ '!errors' => implode(', ', $error_links), ]); drupal_set_message($message, 'error');