Loading core/lib/Drupal/Core/Form/FormStateInterface.php +2 −2 Original line number Diff line number Diff line Loading @@ -536,7 +536,7 @@ public static function hasAnyErrors(); * element is ['foo', 'bar', 'baz'] then you may set an error on 'foo' * or 'foo][bar][baz'. Setting an error on 'foo' sets an error for every * element where the #parents array starts with 'foo'. * @param string $message * @param string|\Stringable $message * (optional) The error message to present to the user. * * @return $this Loading @@ -548,7 +548,7 @@ public function setErrorByName($name, $message = ''); * * @param array $element * The form element. * @param string $message * @param string|\Stringable $message * (optional) The error message to present to the user. * * @return $this Loading Loading
core/lib/Drupal/Core/Form/FormStateInterface.php +2 −2 Original line number Diff line number Diff line Loading @@ -536,7 +536,7 @@ public static function hasAnyErrors(); * element is ['foo', 'bar', 'baz'] then you may set an error on 'foo' * or 'foo][bar][baz'. Setting an error on 'foo' sets an error for every * element where the #parents array starts with 'foo'. * @param string $message * @param string|\Stringable $message * (optional) The error message to present to the user. * * @return $this Loading @@ -548,7 +548,7 @@ public function setErrorByName($name, $message = ''); * * @param array $element * The form element. * @param string $message * @param string|\Stringable $message * (optional) The error message to present to the user. * * @return $this Loading