function HtmlFormController::getFormArgument

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

Overrides FormController::getFormArgument

File

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

Class

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

Namespace

Drupal\Core\Controller

Code

protected function getFormArgument(RouteMatchInterface $route_match) {
    return $route_match->getRouteObject()
        ->getDefault('_form');
}

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