W3cubDocs

/Drupal 8

public function FormAjaxResponseBuilder::__construct

public FormAjaxResponseBuilder::__construct(MainContentRendererInterface $ajax_renderer, RouteMatchInterface $route_match)

Constructs a new FormAjaxResponseBuilder.

Parameters

\Drupal\Core\Render\MainContent\MainContentRendererInterface $ajax_renderer: The ajax renderer.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

File

core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php, line 42

Class

FormAjaxResponseBuilder
Builds an AJAX form response.

Namespace

Drupal\Core\Form

Code

public function __construct(MainContentRendererInterface $ajax_renderer, RouteMatchInterface $route_match) {
  $this->ajaxRenderer = $ajax_renderer;
  $this->routeMatch = $route_match;
}

© 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!FormAjaxResponseBuilder.php/function/FormAjaxResponseBuilder::__construct/8.1.x