function FormController::__construct
Same name in this branch
- 9 core/modules/system/tests/modules/condition_test/src/FormController.php \Drupal\condition_test\FormController::__construct()
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/condition_test/src/FormController.php \Drupal\condition_test\FormController::__construct()
- 11.x core/lib/Drupal/Core/Controller/FormController.php \Drupal\Core\Controller\FormController::__construct()
- 10 core/modules/system/tests/modules/condition_test/src/FormController.php \Drupal\condition_test\FormController::__construct()
- 10 core/lib/Drupal/Core/Controller/FormController.php \Drupal\Core\Controller\FormController::__construct()
- 8.9.x core/modules/system/tests/modules/condition_test/src/FormController.php \Drupal\condition_test\FormController::__construct()
- 8.9.x core/lib/Drupal/Core/Controller/FormController.php \Drupal\Core\Controller\FormController::__construct()
Constructs a new \Drupal\Core\Controller\FormController object.
Parameters
\Symfony\Component\HttpKernel\Controller\ArgumentResolverInterface $argument_resolver: The argument resolver.
\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.
1 method overrides FormController::__construct()
- LayoutBuilderHtmlEntityFormController::__construct in core/
modules/ layout_builder/ src/ Controller/ LayoutBuilderHtmlEntityFormController.php - Constructs a LayoutBuilderHtmlEntityFormController object.
File
-
core/
lib/ Drupal/ Core/ Controller/ FormController.php, line 40
Class
- FormController
- Common base class for form interstitial controllers.
Namespace
Drupal\Core\ControllerCode
public function __construct(ArgumentResolverInterface $argument_resolver, FormBuilderInterface $form_builder) {
$this->argumentResolver = $argument_resolver;
$this->formBuilder = $form_builder;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.