The code comment prior to protected $rebuild = FALSE; contains the following text:

   * confirmation forms. Normally, self::$rebuild is set by a submit handler,
   * since its is usually logic within a submit handler that determines whether
   * a form is done or requires another step. However, a validation handler may

On the second line, please replace 'its' with 'it'.

Comments

michaellenahan created an issue. See original summary.

virajrajankar’s picture

Assigned: Unassigned » virajrajankar
virajrajankar’s picture

Assigned: virajrajankar » Unassigned
Status: Active » Needs review
StatusFileSize
new913 bytes

Updated the mentioned grammatical mistake.

deepanker_bhalla’s picture

Status: Needs review » Reviewed & tested by the community
virajrajankar’s picture

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed 586d121cd6 to 8.7.x and 2788e00cd4 to 8.6.x. Thanks!

Re-flowed comment on commit.

diff --git a/core/lib/Drupal/Core/Form/FormState.php b/core/lib/Drupal/Core/Form/FormState.php
index cf016ba6e0..8264371c83 100644
--- a/core/lib/Drupal/Core/Form/FormState.php
+++ b/core/lib/Drupal/Core/Form/FormState.php
@@ -87,8 +87,8 @@ class FormState implements FormStateInterface {
    * copy of the form is immediately built and sent to the browser, instead of a
    * redirect. This is used for multi-step forms, such as wizards and
    * confirmation forms. Normally, self::$rebuild is set by a submit handler,
-   * since it is usually logic within a submit handler that determines whether
-   * a form is done or requires another step. However, a validation handler may
+   * since it is usually logic within a submit handler that determines whether a
+   * form is done or requires another step. However, a validation handler may
    * already set self::$rebuild to cause the form processing to bypass submit
    * handlers and rebuild the form instead, even if there are no validation
    * errors.

  • alexpott committed 586d121 on 8.7.x
    Issue #3000958 by virajrajankar, michaellenahan: Grammar error in...

  • alexpott committed 2788e00 on 8.6.x
    Issue #3000958 by virajrajankar, michaellenahan: Grammar error in...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.