summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2015-09-09 13:21:11 (GMT)
committerAlex Pott2015-09-09 13:21:11 (GMT)
commit887b1e4c351b17b48c8f116d220c39e8964da1b4 (patch)
treee271947a66d36e44ba706ba8c213e0a282c0fb4f
parent1842da233151f5d197d3f41708b5b3a4b4335ffb (diff)
Issue #2551105 by Dave Reid: BaseCommand should not be in the quickedit namespace, useful for anything
-rw-r--r--core/lib/Drupal/Core/Ajax/BaseCommand.php (renamed from core/modules/quickedit/src/Ajax/BaseCommand.php)8
-rw-r--r--core/modules/editor/src/Ajax/GetUntransformedTextCommand.php3
-rw-r--r--core/modules/quickedit/src/Ajax/EntitySavedCommand.php2
-rw-r--r--core/modules/quickedit/src/Ajax/FieldFormCommand.php2
-rw-r--r--core/modules/quickedit/src/Ajax/FieldFormSavedCommand.php2
-rw-r--r--core/modules/quickedit/src/Ajax/FieldFormValidationErrorsCommand.php2
6 files changed, 12 insertions, 7 deletions
diff --git a/core/modules/quickedit/src/Ajax/BaseCommand.php b/core/lib/Drupal/Core/Ajax/BaseCommand.php
index 896eef1..86d694d 100644
--- a/core/modules/quickedit/src/Ajax/BaseCommand.php
+++ b/core/lib/Drupal/Core/Ajax/BaseCommand.php
@@ -2,15 +2,13 @@
/**
* @file
- * Contains \Drupal\quickedit\Ajax\BaseCommand.
+ * Contains \Drupal\Core\Ajax\BaseCommand.
*/
-namespace Drupal\quickedit\Ajax;
-
-use Drupal\Core\Ajax\CommandInterface;
+namespace Drupal\Core\Ajax;
/**
- * Base command that only exists to simplify Quick Edit's actual AJAX commands.
+ * Base command that only exists to simplify AJAX commands.
*/
class BaseCommand implements CommandInterface {
diff --git a/core/modules/editor/src/Ajax/GetUntransformedTextCommand.php b/core/modules/editor/src/Ajax/GetUntransformedTextCommand.php
index 3465729..6a48f01 100644
--- a/core/modules/editor/src/Ajax/GetUntransformedTextCommand.php
+++ b/core/modules/editor/src/Ajax/GetUntransformedTextCommand.php
@@ -7,8 +7,7 @@
namespace Drupal\editor\Ajax;
-use Drupal\Core\Ajax\CommandInterface;
-use Drupal\quickedit\Ajax\BaseCommand;
+use Drupal\Core\Ajax\BaseCommand;
/**
* AJAX command to rerender a formatted text field without any transformation
diff --git a/core/modules/quickedit/src/Ajax/EntitySavedCommand.php b/core/modules/quickedit/src/Ajax/EntitySavedCommand.php
index cf7ad18..d64f862 100644
--- a/core/modules/quickedit/src/Ajax/EntitySavedCommand.php
+++ b/core/modules/quickedit/src/Ajax/EntitySavedCommand.php
@@ -7,6 +7,8 @@
namespace Drupal\quickedit\Ajax;
+use Drupal\Core\Ajax\BaseCommand;
+
/**
* AJAX command to indicate the entity was loaded from PrivateTempStore and
* saved into the database.
diff --git a/core/modules/quickedit/src/Ajax/FieldFormCommand.php b/core/modules/quickedit/src/Ajax/FieldFormCommand.php
index 56d1e9e..33ee011 100644
--- a/core/modules/quickedit/src/Ajax/FieldFormCommand.php
+++ b/core/modules/quickedit/src/Ajax/FieldFormCommand.php
@@ -7,6 +7,8 @@
namespace Drupal\quickedit\Ajax;
+use Drupal\Core\Ajax\BaseCommand;
+
/**
* AJAX command for passing a rendered field form to Quick Edit's JavaScript
* app.
diff --git a/core/modules/quickedit/src/Ajax/FieldFormSavedCommand.php b/core/modules/quickedit/src/Ajax/FieldFormSavedCommand.php
index f0dc386..14ac51f 100644
--- a/core/modules/quickedit/src/Ajax/FieldFormSavedCommand.php
+++ b/core/modules/quickedit/src/Ajax/FieldFormSavedCommand.php
@@ -7,6 +7,8 @@
namespace Drupal\quickedit\Ajax;
+use Drupal\Core\Ajax\BaseCommand;
+
/**
* AJAX command to indicate a field was saved into PrivateTempStore without
* validation errors and pass the rerendered field to Quick Edit's JavaScript
diff --git a/core/modules/quickedit/src/Ajax/FieldFormValidationErrorsCommand.php b/core/modules/quickedit/src/Ajax/FieldFormValidationErrorsCommand.php
index 8d024ea..4e42ee5 100644
--- a/core/modules/quickedit/src/Ajax/FieldFormValidationErrorsCommand.php
+++ b/core/modules/quickedit/src/Ajax/FieldFormValidationErrorsCommand.php
@@ -7,6 +7,8 @@
namespace Drupal\quickedit\Ajax;
+use Drupal\Core\Ajax\BaseCommand;
+
/**
* AJAX command to indicate a field form was attempted to be saved but failed
* validation and pass the validation errors.