You are here

public function CommandInterface::render in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Ajax/CommandInterface.php \Drupal\Core\Ajax\CommandInterface::render()
  2. 9 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.

3 methods override CommandInterface::render()
AddStyleSheetCommand::render in core/modules/ckeditor/src/Ajax/AddStyleSheetCommand.php
Return an array to be run through json_encode and sent to the client.
EditorDialogSave::render in core/modules/editor/src/Ajax/EditorDialogSave.php
Return an array to be run through json_encode and sent to the client.
SetSubtreesCommand::render in core/modules/toolbar/src/Ajax/SetSubtreesCommand.php
Return an array to be run through json_encode and sent to the client.

File

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

Class

CommandInterface
AJAX command interface.

Namespace

Drupal\Core\Ajax

Code

public function render();