function 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',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.