diff --git a/core/modules/action/src/Plugin/migrate/source/Action.php b/core/modules/action/src/Plugin/migrate/source/Action.php index 18b4c7d982..f221496eb7 100644 --- a/core/modules/action/src/Plugin/migrate/source/Action.php +++ b/core/modules/action/src/Plugin/migrate/source/Action.php @@ -2,9 +2,8 @@ namespace Drupal\action\Plugin\migrate\source; -use Drupal\Core\Entity\EntityTypeManagerInterface; -use Drupal\Core\State\StateInterface; -use Drupal\migrate\Plugin\MigrationInterface; +@trigger_error('The' . __NAMESPACE__ . '\Action is deprecated in drupal:8.9.0 and is removed from drupal:10.0.0. Use \Drupal\system\Plugin\migrate\source\Action instead. See https://www.drupal.org/node/3110401', E_USER_DEPRECATED); + use Drupal\system\Plugin\migrate\source\Action as SystemAction; /** @@ -17,12 +16,4 @@ */ class Action extends SystemAction { - /** - * {@inheritdoc} - */ - public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state, EntityTypeManagerInterface $entity_type_manager) { - @trigger_error(__CLASS__ . ' is deprecated in drupal:8.9.0 and is removed from drupal:10.0.0. Use \Drupal\system\Plugin\migrate\source\Action instead. See https://www.drupal.org/node/3110401', E_USER_DEPRECATED); - parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $state, $entity_type_manager); - } - }