reverted: --- b/core/modules/inline_form_errors/inline_form_errors.api.php +++ /dev/null @@ -1,51 +0,0 @@ - 'textfield', - * '#title' => 'Test 4', - * '#parents' => ['test4'], - * '#array_parents' => ['test4'], - * '#id' => 'edit-test4', - * '#error_no_message' => TRUE, - * ]; - * @endcode - * - * @section Disable the Inline Form Errors summary. - * Disable the duplicate messages from summary and inline-error elements. Set - * the #disable_inline_form_errors_summary property to TRUE on the top level of - * the $form array. - * @code - * $form['#disable_inline_form_errors_summary'] = TRUE - * @endcode - * - * If one or more elements with errors cannot be shown as inline-error (e.g. - * invisible, missing, or has no title elements), the summary will remain - * visible with those messages only. - * - * See - * @link https://www.drupal.org/docs/8/core/modules/inline-form-errors @endlink - * for more information about the Inline Form Errors module. - * - * @} - */ diff -u b/core/modules/inline_form_errors/tests/src/Unit/FormErrorHandlerTest.php b/core/modules/inline_form_errors/tests/src/Unit/FormErrorHandlerTest.php --- b/core/modules/inline_form_errors/tests/src/Unit/FormErrorHandlerTest.php +++ b/core/modules/inline_form_errors/tests/src/Unit/FormErrorHandlerTest.php @@ -218,18 +218,15 @@ * Tests that disabling Inline Form Errors summary works. */ public function testDisabledInlineErrorsSummary() { - $this->messenger->expects($this->exactly(3)) + $this->messenger->expects($this->exactly(2)) ->method('addError'); // Assert that messages are summarized for elements that have both no title // and are missing or invisible. $this->messenger->expects($this->at(0)) ->method('addError') - ->with('no title given'); - $this->messenger->expects($this->at(1)) - ->method('addError') ->with('element is invisible'); - $this->messenger->expects($this->at(2)) + $this->messenger->expects($this->at(1)) ->method('addError') ->with('this missing element is invalid');