function FormBuilder::getForm

Same name in other branches
  1. 9 core/lib/Drupal/Core/Form/FormBuilder.php \Drupal\Core\Form\FormBuilder::getForm()
  2. 8.9.x core/lib/Drupal/Core/Form/FormBuilder.php \Drupal\Core\Form\FormBuilder::getForm()
  3. 10 core/lib/Drupal/Core/Form/FormBuilder.php \Drupal\Core\Form\FormBuilder::getForm()

Overrides FormBuilderInterface::getForm

File

core/lib/Drupal/Core/Form/FormBuilder.php, line 216

Class

FormBuilder
Provides form building and processing.

Namespace

Drupal\Core\Form

Code

public function getForm($form_arg, mixed ...$args) {
    $form_state = new FormState();
    $form_state->addBuildInfo('args', $args);
    return $this->buildForm($form_arg, $form_state);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.