AjaxResponseSubscriber
class AjaxResponseSubscriber
Response subscriber to handle AJAX responses.
Hierarchy
- class \Drupal\Core\EventSubscriber\AjaxResponseSubscriber implements EventSubscriberInterface
File
- core/lib/Drupal/Core/EventSubscriber/AjaxResponseSubscriber.php, line 16
Namespace
Drupal\Core\EventSubscriberMembers
Name | Modifiers | Type | Description |
---|---|---|---|
AjaxResponseSubscriber::$ajaxResponseAttachmentsProcessor | protected | property | The AJAX response attachments processor service. |
AjaxResponseSubscriber::AJAX_REQUEST_PARAMETER | constant | Request parameter to indicate that a request is a Drupal Ajax request. | |
AjaxResponseSubscriber::getSubscribedEvents | public static | function | Returns an array of event names this subscriber wants to listen to. Overrides EventSubscriberInterface::getSubscribedEvents |
AjaxResponseSubscriber::onRequest | public | function | Sets the AJAX parameter from the current request. |
AjaxResponseSubscriber::onResponse | public | function | Renders the ajax commands right before preparing the result. |
AjaxResponseSubscriber::__construct | public | function | Constructs an AjaxResponseSubscriber object. |
© 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/class/AjaxResponseSubscriber/8.1.x