Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Form / FormBuilder.php
index be000dcc259ac7e3ae092000d394f9858d2942cc..d64c1df5b8b53f422c3e038cb31a451b55b16a1a 100644 (file)
@@ -84,11 +84,15 @@ class FormBuilder implements FormBuilderInterface, FormValidatorInterface, FormS
   protected $themeManager;
 
   /**
+   * The form validator.
+   *
    * @var \Drupal\Core\Form\FormValidatorInterface
    */
   protected $formValidator;
 
   /**
+   * The form submitter.
+   *
    * @var \Drupal\Core\Form\FormSubmitterInterface
    */
   protected $formSubmitter;
@@ -683,7 +687,7 @@ class FormBuilder implements FormBuilderInterface, FormValidatorInterface, FormS
       // will be replaced at the very last moment. This ensures forms with
       // dynamically generated action URLs don't have poor cacheability.
       // Use the proper API to generate the placeholder, when we have one. See
-      // https://www.drupal.org/node/2562341. The placholder uses a fixed string
+      // https://www.drupal.org/node/2562341. The placeholder uses a fixed string
       // that is Crypt::hashBase64('Drupal\Core\Form\FormBuilder::prepareForm');
       $placeholder = 'form_action_p_pvdeGsVG5zNF_XLGPTvYSKCf43t8qZYSwcfZl2uzM';
 
@@ -774,9 +778,9 @@ class FormBuilder implements FormBuilderInterface, FormValidatorInterface, FormS
           '#attached' => [
             'placeholders' => [
               $placeholder => [
-                '#lazy_builder' => ['form_builder:renderFormTokenPlaceholder', [$placeholder]]
-              ]
-            ]
+                '#lazy_builder' => ['form_builder:renderFormTokenPlaceholder', [$placeholder]],
+              ],
+            ],
           ],
           '#cache' => [
             'max-age' => 0,