function CommandInterface::render

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Ajax/CommandInterface.php \Drupal\Core\Ajax\CommandInterface::render()

Return an array to be run through json_encode and sent to the client.

9 methods override CommandInterface::render()
AlertCommand::render in core/lib/Drupal/Core/Ajax/AlertCommand.php
Implements Drupal\Core\Ajax\CommandInterface:render().
CloseDialogCommand::render in core/lib/Drupal/Core/Ajax/CloseDialogCommand.php
Return an array to be run through json_encode and sent to the client.
MessageCommand::render in core/lib/Drupal/Core/Ajax/MessageCommand.php
Return an array to be run through json_encode and sent to the client.
OpenDialogCommand::render in core/lib/Drupal/Core/Ajax/OpenDialogCommand.php
Implements \Drupal\Core\Ajax\CommandInterface:render().
RedirectCommand::render in core/lib/Drupal/Core/Ajax/RedirectCommand.php
Implements \Drupal\Core\Ajax\CommandInterface:render().

... See full list

File

core/lib/Drupal/Core/Ajax/CommandInterface.php, line 18

Class

CommandInterface
AJAX command interface.

Namespace

Drupal\Core\Ajax

Code

public function render();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.