Version 1
[yaffs-website] / web / core / modules / editor / src / Ajax / GetUntransformedTextCommand.php
diff --git a/web/core/modules/editor/src/Ajax/GetUntransformedTextCommand.php b/web/core/modules/editor/src/Ajax/GetUntransformedTextCommand.php
new file mode 100644 (file)
index 0000000..5a37686
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+
+namespace Drupal\editor\Ajax;
+
+use Drupal\Core\Ajax\BaseCommand;
+
+/**
+ * AJAX command to rerender a formatted text field without any transformation
+ * filters.
+ */
+class GetUntransformedTextCommand extends BaseCommand {
+
+  /**
+   * Constructs a GetUntransformedTextCommand object.
+   *
+   * @param string $data
+   *   The data to pass on to the client side.
+   */
+  public function __construct($data) {
+    parent::__construct('editorGetUntransformedText', $data);
+  }
+
+}