function CommandInterface::render
Same name in other branches
- 9 core/lib/Drupal/Core/Ajax/CommandInterface.php \Drupal\Core\Ajax\CommandInterface::render()
- 8.9.x core/lib/Drupal/Core/Ajax/CommandInterface.php \Drupal\Core\Ajax\CommandInterface::render()
- 10 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.
31 methods override CommandInterface::render()
- AddCssCommand::render in core/
lib/ Drupal/ Core/ Ajax/ AddCssCommand.php - AddJsCommand::render in core/
lib/ Drupal/ Core/ Ajax/ AddJsCommand.php - AlertCommand::render in core/
lib/ Drupal/ Core/ Ajax/ AlertCommand.php - Implements Drupal\Core\Ajax\CommandInterface:render().
- AnnounceCommand::render in core/
lib/ Drupal/ Core/ Ajax/ AnnounceCommand.php - BaseCommand::render in core/
lib/ Drupal/ Core/ Ajax/ BaseCommand.php
File
-
core/
lib/ Drupal/ Core/ Ajax/ CommandInterface.php, line 18
Class
- CommandInterface
- AJAX command interface.
Namespace
Drupal\Core\AjaxCode
public function render();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.