Commit 07aa6dbb authored by webchick's avatar webchick

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

Issue #3070604 by christinlepson, joachim, jhodgdon: badly named and documented parameter for FormBuilder::buildForm()

(cherry picked from commit 9a0ebb87)
parent e2f98479
...@@ -220,9 +220,9 @@ public function getForm($form_arg) { ...@@ -220,9 +220,9 @@ public function getForm($form_arg) {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function buildForm($form_id, FormStateInterface &$form_state) { public function buildForm($form_arg, FormStateInterface &$form_state) {
// Ensure the form ID is prepared. // 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(); $request = $this->requestStack->getCurrentRequest();
......
...@@ -68,7 +68,7 @@ public function getForm($form_arg); ...@@ -68,7 +68,7 @@ public function getForm($form_arg);
* previous page load. The form is then passed on for processing, validation, * previous page load. The form is then passed on for processing, validation,
* and submission if there is proper input. * 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 value must be one of the following:
* - The name of a class that implements \Drupal\Core\Form\FormInterface. * - The name of a class that implements \Drupal\Core\Form\FormInterface.
* - An instance 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); ...@@ -89,7 +89,7 @@ public function getForm($form_arg);
* *
* @see self::redirectForm() * @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. * Constructs a new $form from the information in $form_state.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment