function FormController::getFormObject
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Controller/FormController.php \Drupal\Core\Controller\FormController::getFormObject()
- 10 core/lib/Drupal/Core/Controller/FormController.php \Drupal\Core\Controller\FormController::getFormObject()
- 8.9.x core/lib/Drupal/Core/Controller/FormController.php \Drupal\Core\Controller\FormController::getFormObject()
Returns the object used to build the form.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.
string $form_arg: Either a class name or a service ID.
Return value
\Drupal\Core\Form\FormInterface The form object to use.
1 method overrides FormController::getFormObject()
- LayoutBuilderHtmlEntityFormController::getFormObject in core/
modules/ layout_builder/ src/ Controller/ LayoutBuilderHtmlEntityFormController.php - Returns the object used to build the form.
File
-
core/
lib/ Drupal/ Core/ Controller/ FormController.php, line 107
Class
- FormController
- Common base class for form interstitial controllers.
Namespace
Drupal\Core\ControllerCode
abstract protected function getFormObject(RouteMatchInterface $route_match, $form_arg);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.