W3cubDocs

/Drupal 8

public function FormAjaxSubscriber::__construct

public FormAjaxSubscriber::__construct(FormAjaxResponseBuilderInterface $form_ajax_response_builder, TranslationInterface $string_translation)

Constructs a new FormAjaxSubscriber.

Parameters

\Drupal\Core\Form\FormAjaxResponseBuilderInterface $form_ajax_response_builder: The form AJAX response builder.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation.

File

core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php, line 41

Class

FormAjaxSubscriber
Wraps AJAX form submissions that are triggered via an exception.

Namespace

Drupal\Core\Form\EventSubscriber

Code

public function __construct(FormAjaxResponseBuilderInterface $form_ajax_response_builder, TranslationInterface $string_translation) {
  $this->formAjaxResponseBuilder = $form_ajax_response_builder;
  $this->stringTranslation = $string_translation;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Form!EventSubscriber!FormAjaxSubscriber.php/function/FormAjaxSubscriber::__construct/8.1.x