function ViewsForm::__construct

Same name and namespace in other branches
  1. 11.x core/modules/views/src/Form/ViewsForm.php \Drupal\views\Form\ViewsForm::__construct()
  2. 10 core/modules/views/src/Form/ViewsForm.php \Drupal\views\Form\ViewsForm::__construct()
  3. 9 core/modules/views/src/Form/ViewsForm.php \Drupal\views\Form\ViewsForm::__construct()
  4. 8.9.x core/modules/views/src/Form/ViewsForm.php \Drupal\views\Form\ViewsForm::__construct()

Constructs a ViewsForm object.

Parameters

\Drupal\Core\DependencyInjection\ClassResolverInterface $classResolver: The class resolver to get the subform form objects.

\Drupal\Core\Routing\UrlGeneratorInterface $urlGenerator: The URL generator to generate the form action.

\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack.

string $viewId: The ID of the view.

string $viewDisplayId: The ID of the active view's display.

string[] $viewArguments: The arguments passed to the active view.

File

core/modules/views/src/Form/ViewsForm.php, line 44

Class

ViewsForm
Provides a base class for single- or multistep view forms.

Namespace

Drupal\views\Form

Code

public function __construct(protected ClassResolverInterface $classResolver, protected UrlGeneratorInterface $urlGenerator, protected RequestStack $requestStack, protected $viewId, protected $viewDisplayId, protected array $viewArguments) {
}

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