JsAjaxTestCommand.php

Same filename and directory in other branches
  1. 8.9.x core/modules/system/tests/modules/js_ajax_test/src/Ajax/JsAjaxTestCommand.php

Namespace

Drupal\js_ajax_test\Ajax

File

core/modules/system/tests/modules/js_ajax_test/src/Ajax/JsAjaxTestCommand.php

View source
<?php

namespace Drupal\js_ajax_test\Ajax;

use Drupal\Core\Ajax\CommandInterface;

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

}

Classes

Title Deprecated Summary
JsAjaxTestCommand Test Ajax command.

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