You are here

public function JsAjaxTestCommand::render in Drupal 9

Same name and namespace in other branches
  1. 8 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\Ajax

Code

public function render() {
  return [
    'command' => 'jsAjaxTestCommand',
    'selector' => '#js_ajax_test_form_wrapper',
  ];
}