Version 1
[yaffs-website] / web / core / modules / quickedit / src / Ajax / FieldFormCommand.php
diff --git a/web/core/modules/quickedit/src/Ajax/FieldFormCommand.php b/web/core/modules/quickedit/src/Ajax/FieldFormCommand.php
new file mode 100644 (file)
index 0000000..03faecf
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+
+namespace Drupal\quickedit\Ajax;
+
+use Drupal\Core\Ajax\BaseCommand;
+
+/**
+ * AJAX command for passing a rendered field form to Quick Edit's JavaScript
+ * app.
+ */
+class FieldFormCommand extends BaseCommand {
+
+  /**
+   * Constructs a FieldFormCommand object.
+   *
+   * @param string $data
+   *   The data to pass on to the client side.
+   */
+  public function __construct($data) {
+    parent::__construct('quickeditFieldForm', $data);
+  }
+
+}