Commit 9a0ebb87 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()
parent 19fe4f93
......@@ -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.
......
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