class AjaxReloadCommand in Workbench Moderation Actions 8
Tells the client to perform an AJAX reload.
Hierarchy
- class \Drupal\workbench_moderation_actions\AjaxReloadCommand implements CommandInterface
Expanded class hierarchy of AjaxReloadCommand
1 file declares its use of AjaxReloadCommand
- StateChange.php in src/
Controller/ StateChange.php
File
- src/
AjaxReloadCommand.php, line 10
Namespace
Drupal\workbench_moderation_actionsView source
class AjaxReloadCommand implements CommandInterface {
/**
* Return an array to be run through json_encode and sent to the client.
*/
public function render() {
return [
'command' => 'reload',
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AjaxReloadCommand:: |
public | function |
Return an array to be run through json_encode and sent to the client. Overrides CommandInterface:: |