function FormSubmitter::__construct

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Form/FormSubmitter.php \Drupal\Core\Form\FormSubmitter::__construct()

Constructs a new FormSubmitter.

Parameters

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

\Drupal\Core\Routing\UrlGeneratorInterface $urlGenerator: The URL generator.

\Drupal\Core\EventSubscriber\RedirectResponseSubscriber $redirectResponseSubscriber: The redirect response subscriber.

File

core/lib/Drupal/Core/Form/FormSubmitter.php, line 27

Class

FormSubmitter
Provides submission processing for forms.

Namespace

Drupal\Core\Form

Code

public function __construct(protected RequestStack $requestStack, protected UrlGeneratorInterface $urlGenerator, protected RedirectResponseSubscriber $redirectResponseSubscriber) {
}

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