interface CommandInterface
AJAX command interface.
All AJAX commands passed to AjaxResponse objects should implement these methods.
Hierarchy
- interface \Drupal\Core\Ajax\CommandInterface
Related topics
- Ajax API
- Overview for Drupal's Ajax API.
File
- core/lib/Drupal/Core/Ajax/CommandInterface.php, line 13
Namespace
Drupal\Core\AjaxMembers
Name | Modifiers | Type | Description |
---|---|---|---|
CommandInterface::render | public | function | Return an array to be run through json_encode and sent to the client. |
© 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!CommandInterface.php/interface/CommandInterface/8.1.x