public function AjaxResponseSubscriber::__construct

public AjaxResponseSubscriber::__construct(AttachmentsResponseProcessorInterface $ajax_response_attachments_processor)

Constructs an AjaxResponseSubscriber object.

Parameters

\Drupal\Core\Render\AttachmentsResponseProcessorInterface $ajax_response_attachments_processor: The AJAX response attachments processor service.

File

core/lib/Drupal/Core/EventSubscriber/AjaxResponseSubscriber.php, line 31

Class

AjaxResponseSubscriber
Response subscriber to handle AJAX responses.

Namespace

Drupal\Core\EventSubscriber

Code

public function __construct(AttachmentsResponseProcessorInterface $ajax_response_attachments_processor) {
  $this->ajaxResponseAttachmentsProcessor = $ajax_response_attachments_processor;
}

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