public function BaseCommand::render
public BaseCommand::render()
Return an array to be run through json_encode and sent to the client.
Overrides CommandInterface::render
File
- core/lib/Drupal/Core/Ajax/BaseCommand.php, line 40
Class
- BaseCommand
- Base command that only exists to simplify AJAX commands.
Namespace
Drupal\Core\AjaxCode
public function render() { return array( 'command' => $this->command, 'data' => $this->data, ); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Ajax!BaseCommand.php/function/BaseCommand::render/8.1.x