JsAjaxTestCommand.php in Drupal 9
Same filename and directory in other branches
Namespace
Drupal\js_ajax_test\AjaxFile
core/modules/system/tests/modules/js_ajax_test/src/Ajax/JsAjaxTestCommand.phpView 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
Name | Description |
---|---|
JsAjaxTestCommand | Test Ajax command. |