diff --git a/core/lib/Drupal/Core/Form/FormBuilder.php b/core/lib/Drupal/Core/Form/FormBuilder.php index 9ffcccd..1f74692 100644 --- a/core/lib/Drupal/Core/Form/FormBuilder.php +++ b/core/lib/Drupal/Core/Form/FormBuilder.php @@ -610,7 +610,11 @@ public function processForm($form_id, &$form, FormStateInterface &$form_state) { * A renderable array representing the form action. */ public function renderPlaceholderFormAction() { - return ['#link' => $this->buildFormAction()]; + return [ + '#type' => 'markup', + '#markup' => $this->buildFormAction(), + '#cache' => ['max-age' => 0], + ]; } /** @@ -631,7 +635,7 @@ public function prepareForm($form_id, &$form, FormStateInterface &$form_state) { // Attach the lazy builder to the form and add the placeholder in the form // action so the #lazy_builder callback knows what to replace. $form['#attached']['placeholders'][$placeholder] = $placeholder_render_array; -// $form['#action'] = $placeholder; + $form['#action'] = $placeholder; } // Fix the form method, if it is 'get' in $form_state, but not in $form.