Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/Ajax/CommandInterface.php \Drupal\Core\Ajax\CommandInterface
- 9 core/lib/Drupal/Core/Ajax/CommandInterface.php \Drupal\Core\Ajax\CommandInterface
AJAX command interface.
All AJAX commands passed to AjaxResponse objects should implement these methods.
Hierarchy
- interface \Drupal\Core\Ajax\CommandInterface
Expanded class hierarchy of CommandInterface
All classes that implement CommandInterface
Related topics
7 files declare their use of CommandInterface
- HighlightCommand.php in core/
modules/ views/ src/ Ajax/ HighlightCommand.php - ReplaceTitleCommand.php in core/
modules/ views/ src/ Ajax/ ReplaceTitleCommand.php - SetFormCommand.php in core/
modules/ views_ui/ src/ Ajax/ SetFormCommand.php - SetSubtreesCommand.php in core/
modules/ toolbar/ src/ Ajax/ SetSubtreesCommand.php - ShowButtonsCommand.php in core/
modules/ views/ src/ Ajax/ ShowButtonsCommand.php
File
- core/
lib/ Drupal/ Core/ Ajax/ CommandInterface.php, line 13
Namespace
Drupal\Core\AjaxView source
interface CommandInterface {
/**
* Return an array to be run through json_encode and sent to the client.
*/
public function render();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CommandInterface:: |
public | function | Return an array to be run through json_encode and sent to the client. | 27 |