Skip to content
Snippets Groups Projects
Commit 9a0ebb87 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #3070604 by christinlepson, joachim, jhodgdon: badly named and...

Issue #3070604 by christinlepson, joachim, jhodgdon: badly named and documented parameter for FormBuilder::buildForm()
parent 19fe4f93
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -221,9 +221,9 @@ public function getForm($form_arg) {
/**
* {@inheritdoc}
*/
public function buildForm($form_id, FormStateInterface &$form_state) {
public function buildForm($form_arg, FormStateInterface &$form_state) {
// Ensure the form ID is prepared.
$form_id = $this->getFormId($form_id, $form_state);
$form_id = $this->getFormId($form_arg, $form_state);
$request = $this->requestStack->getCurrentRequest();
......
......@@ -68,7 +68,7 @@ public function getForm($form_arg);
* previous page load. The form is then passed on for processing, validation,
* and submission if there is proper input.
*
* @param \Drupal\Core\Form\FormInterface|string $form_id
* @param \Drupal\Core\Form\FormInterface|string $form_arg
* The value must be one of the following:
* - The name of a class that implements \Drupal\Core\Form\FormInterface.
* - An instance of a class that implements \Drupal\Core\Form\FormInterface.
......@@ -89,7 +89,7 @@ public function getForm($form_arg);
*
* @see self::redirectForm()
*/
public function buildForm($form_id, FormStateInterface &$form_state);
public function buildForm($form_arg, FormStateInterface &$form_state);
/**
* Constructs a new $form from the information in $form_state.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment