You are here

public function FormSubmitter::__construct in Drupal 8

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

Constructs a new FormValidator.

Parameters

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

\Drupal\Core\Routing\UrlGeneratorInterface $url_generator:

File

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

Class

FormSubmitter
Provides submission processing for forms.

Namespace

Drupal\Core\Form

Code

public function __construct(RequestStack $request_stack, UrlGeneratorInterface $url_generator) {
  $this->requestStack = $request_stack;
  $this->urlGenerator = $url_generator;
}