function 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.

2 calls to FormController::__construct()
HtmlEntityFormController::__construct in core/lib/Drupal/Core/Entity/HtmlEntityFormController.php
Constructs a new \Drupal\Core\Routing\Enhancer\FormEnhancer object.
HtmlFormController::__construct in core/lib/Drupal/Core/Controller/HtmlFormController.php
Constructs a new \Drupal\Core\Controller\HtmlFormController object.
3 methods override FormController::__construct()
HtmlEntityFormController::__construct in core/lib/Drupal/Core/Entity/HtmlEntityFormController.php
Constructs a new \Drupal\Core\Routing\Enhancer\FormEnhancer object.
HtmlFormController::__construct in core/lib/Drupal/Core/Controller/HtmlFormController.php
Constructs a new \Drupal\Core\Controller\HtmlFormController object.
WorkspacesHtmlEntityFormController::__construct in core/modules/workspaces/src/Controller/WorkspacesHtmlEntityFormController.php
Constructs a new \Drupal\Core\Controller\FormController object.

File

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

Class

FormController
Common base class for form interstitial controllers.

Namespace

Drupal\Core\Controller

Code

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.