You are here

class JsAjaxTestCommand 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

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

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

Namesort descending Modifiers Type Description Overrides
JsAjaxTestCommand::render public function Return an array to be run through json_encode and sent to the client. Overrides CommandInterface::render