diff --git a/core/modules/quickedit/src/Ajax/BaseCommand.php b/core/lib/Drupal/Core/Ajax/BaseCommand.php similarity index 78% rename from core/modules/quickedit/src/Ajax/BaseCommand.php rename to core/lib/Drupal/Core/Ajax/BaseCommand.php index 896eef1e5abe086aa8f77e34007a4cce36e33f06..86d694dec835c9198b7ca9b47b5d1e5bf94ae7f5 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 3465729603a7cb61dbfba8e8884a266df1a2eba0..6a48f01be51e2632c1aebf1c3be297dad5602321 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 cf7ad18ad1579d375cf9b204f365a27720cecaff..d64f862b2a7e6bfc266287ab0614f7710c3d57d3 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 56d1e9e0b572d563ab078e6ec209a008aa6a0fd7..33ee011efd64d92e582a8db49ff9025fff066e68 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 f0dc38646afd9a08181d661862547d4a8b2b9d05..14ac51f6359cb57f1f6fa0e17c2490915e353e5e 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 8d024ea66727dc458caf98130cfe244a1089c7f2..4e42ee5629f63ccf3c5a9dae7c4f87bd6e3b4e2e 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.