class JsAjaxTestCommand

Same name in other branches
  1. 8.9.x core/modules/system/tests/modules/js_ajax_test/src/Ajax/JsAjaxTestCommand.php \Drupal\js_ajax_test\Ajax\JsAjaxTestCommand

Test Ajax command.

Hierarchy

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
1 string reference to 'JsAjaxTestCommand'
JsAjaxTestCommand::render in core/modules/system/tests/modules/js_ajax_test/src/Ajax/JsAjaxTestCommand.php
Return an array to be run through json_encode and sent to the client.

File

core/modules/system/tests/modules/js_ajax_test/src/Ajax/JsAjaxTestCommand.php, line 10

Namespace

Drupal\js_ajax_test\Ajax
View source
class JsAjaxTestCommand implements CommandInterface {
    
    /**
     * {@inheritdoc}
     */
    public function render() {
        return [
            'command' => 'jsAjaxTestCommand',
            'selector' => '#js_ajax_test_form_wrapper',
        ];
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
JsAjaxTestCommand::render public function Return an array to be run through json_encode and sent to the client. Overrides CommandInterface::render

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.