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\EventSubscriber
Members
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. |
Please login to continue.