class JsAjaxTestCommand 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
Test Ajax command.
Hierarchy
- class \Drupal\js_ajax_test\Ajax\JsAjaxTestCommand implements CommandInterface
Expanded class hierarchy of JsAjaxTestCommand
1 file declares its use of JsAjaxTestCommand
- JsAjaxTestForm.php in core/
modules/ system/ tests/ modules/ js_ajax_test/ src/ Form/ JsAjaxTestForm.php
File
- core/
modules/ system/ tests/ modules/ js_ajax_test/ src/ Ajax/ JsAjaxTestCommand.php, line 10
Namespace
Drupal\js_ajax_test\AjaxView source
class JsAjaxTestCommand implements CommandInterface {
/**
* {@inheritdoc}
*/
public function render() {
return [
'command' => 'jsAjaxTestCommand',
'selector' => '#js_ajax_test_form_wrapper',
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
JsAjaxTestCommand:: |
public | function |
Return an array to be run through json_encode and sent to the client. Overrides CommandInterface:: |