Skip to content

Instantly share code, notes, and snippets.

@bangpound
Created May 19, 2016 14:21
Show Gist options
  • Save bangpound/2dc7585d5ed658beffac94ca5b8505c0 to your computer and use it in GitHub Desktop.
Save bangpound/2dc7585d5ed658beffac94ca5b8505c0 to your computer and use it in GitHub Desktop.
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