-
-
Save bangpound/2dc7585d5ed658beffac94ca5b8505c0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/docroot/core/modules/inline_form_errors/src/FormErrorHandler.php b/docroot/core/modules/inline_form_errors/src/FormErrorHandler.php | |
index 8e0f1b8..c2dce23 100644 | |
--- a/docroot/core/modules/inline_form_errors/src/FormErrorHandler.php | |
+++ b/docroot/core/modules/inline_form_errors/src/FormErrorHandler.php | |
@@ -87,12 +87,12 @@ protected function displayErrorMessages(array $form, FormStateInterface $form_st | |
if (!empty($error_links)) { | |
$render_array = [ | |
[ | |
- '#markup' => $this->formatPlural(count($error_links), '1 error has been found: ', '@count errors have been found: '), | |
+ '#markup' => $this->formatPlural(count($error_links), '<p>1 error has been found:</p>', '<p>@count errors have been found:</p>'), | |
], | |
[ | |
'#theme' => 'item_list', | |
'#items' => $error_links, | |
- '#context' => ['list_style' => 'comma-list'], | |
+ '#context' => ['list_style' => ' has-inline-elements'], | |
], | |
]; | |
$message = $this->renderer->renderPlain($render_array); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment