ViewAjaxResponse
class ViewAjaxResponse extends AjaxResponse (View source)
Custom JSON response object for an ajax view response.
We use a special response object to be able to fire a proper alter hook.
Traits
Provides an implementation of AttachmentsInterface.
Properties
| protected array | $attachments | The attachments for this response. |
from AttachmentsTrait |
| protected array | $commands | The array of ajax commands. |
from AjaxResponse |
| protected ViewExecutable | $view | The view executed on this ajax request. |
Methods
Details
getAttachments()
{@inheritdoc}
addAttachments(array $attachments)
{@inheritdoc}
setAttachments(array $attachments)
{@inheritdoc}
$this
addCommand(CommandInterface $command, bool $prepend = FALSE)
Add an AJAX command to the response.
array
getCommands()
Gets all AJAX commands.
setView(ViewExecutable $view)
Sets the executed view of this response.
ViewExecutable
getView()
Gets the executed view of this response.