Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / system / tests / modules / js_ajax_test / src / Ajax / JsAjaxTestCommand.php
diff --git a/web/core/modules/system/tests/modules/js_ajax_test/src/Ajax/JsAjaxTestCommand.php b/web/core/modules/system/tests/modules/js_ajax_test/src/Ajax/JsAjaxTestCommand.php
new file mode 100644 (file)
index 0000000..3464139
--- /dev/null
@@ -0,0 +1,22 @@
+<?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',
+    ];
+  }
+
+}