function HtmlFormController::getFormObject

Same name in other branches
  1. 9 core/lib/Drupal/Core/Controller/HtmlFormController.php \Drupal\Core\Controller\HtmlFormController::getFormObject()
  2. 8.9.x core/lib/Drupal/Core/Controller/HtmlFormController.php \Drupal\Core\Controller\HtmlFormController::getFormObject()
  3. 10 core/lib/Drupal/Core/Controller/HtmlFormController.php \Drupal\Core\Controller\HtmlFormController::getFormObject()

Overrides FormController::getFormObject

File

core/lib/Drupal/Core/Controller/HtmlFormController.php, line 47

Class

HtmlFormController
Wrapping controller for forms that serve as the main page body.

Namespace

Drupal\Core\Controller

Code

protected function getFormObject(RouteMatchInterface $route_match, $form_arg) {
    return $this->classResolver
        ->getInstanceFromDefinition($form_arg);
}

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