ViewAjaxResponse

Custom JSON response object for an ajax view response.

We use a special response object to be able to fire a proper alter hook.

Hierarchy

File

core/modules/views/src/Ajax/ViewAjaxResponse.php, line 13

Namespace

Drupal\views\Ajax

Members

Name Modifiers Type Description
AjaxResponse::$commands protected property The array of ajax commands.
AjaxResponse::addCommand public function Add an AJAX command to the response.
AjaxResponse::getCommands public function Gets all AJAX commands.
AttachmentsTrait::$attachments protected property The attachments for this response.
AttachmentsTrait::addAttachments public function Adds attachments. Overrides AttachmentsInterface::addAttachments
AttachmentsTrait::getAttachments public function Gets attachments. Overrides AttachmentsInterface::getAttachments
AttachmentsTrait::setAttachments public function Sets attachments. Overrides AttachmentsInterface::setAttachments
JsonResponse::$callback protected property
JsonResponse::$data protected property
JsonResponse::$encodingOptions protected property
JsonResponse::create public static function
JsonResponse::getEncodingOptions public function Returns options used while encoding data to JSON.
JsonResponse::setCallback public function Sets the JSONP callback.
JsonResponse::setData public function Sets the data to be sent as JSON.
JsonResponse::setEncodingOptions public function Sets options used while encoding data to JSON.
JsonResponse::update protected function Updates the content and headers according to the JSON data and callback.
JsonResponse::__construct public function Constructor.
ViewAjaxResponse::$view protected property The view executed on this ajax request.
ViewAjaxResponse::getView public function Gets the executed view of this response.
ViewAjaxResponse::setView public function Sets the executed view of this response.
doc_Drupal
2016-10-29 09:53:50
Comments
Leave a Comment

Please login to continue.