public function JsAjaxTestCommand::render in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/js_ajax_test/src/Ajax/JsAjaxTestCommand.php \Drupal\js_ajax_test\Ajax\JsAjaxTestCommand::render()
Return an array to be run through json_encode and sent to the client.
Overrides CommandInterface::render
File
- core/
modules/ system/ tests/ modules/ js_ajax_test/ src/ Ajax/ JsAjaxTestCommand.php, line 15
Class
- JsAjaxTestCommand
- Test Ajax command.
Namespace
Drupal\js_ajax_test\AjaxCode
public function render() {
return [
'command' => 'jsAjaxTestCommand',
'selector' => '#js_ajax_test_form_wrapper',
];
}