Commit 1cc137f3 authored by catch's avatar catch

Issue #2676222 by alexpott, johnrosswvsu: Move MigrationInterface out of the...

Issue #2676222 by alexpott, johnrosswvsu: Move MigrationInterface out of the migrate\Entity namspace now they are plugins
parent db464d80
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
use Drupal\ban\BanIpManagerInterface; use Drupal\ban\BanIpManagerInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Plugin\migrate\destination\DestinationBase; use Drupal\migrate\Plugin\migrate\destination\DestinationBase;
use Drupal\migrate\Row; use Drupal\migrate\Row;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
...@@ -39,7 +39,7 @@ class BlockedIP extends DestinationBase implements ContainerFactoryPluginInterfa ...@@ -39,7 +39,7 @@ class BlockedIP extends DestinationBase implements ContainerFactoryPluginInterfa
* The plugin ID. * The plugin ID.
* @param mixed $plugin_definition * @param mixed $plugin_definition
* The plugin definiiton. * The plugin definiiton.
* @param \Drupal\migrate\Entity\MigrationInterface $migration * @param \Drupal\migrate\Plugin\MigrationInterface $migration
* The current migration. * The current migration.
* @param \Drupal\ban\BanIpManagerInterface $ban_manager * @param \Drupal\ban\BanIpManagerInterface $ban_manager
* The IP manager service. * The IP manager service.
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
use Drupal\Core\Entity\EntityStorageInterface; use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\MigrateExecutableInterface; use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\Plugin\MigrateProcessInterface; use Drupal\migrate\Plugin\MigrateProcessInterface;
use Drupal\migrate\ProcessPluginBase; use Drupal\migrate\ProcessPluginBase;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Drupal\block\Plugin\migrate\process; namespace Drupal\block\Plugin\migrate\process;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\MigrateExecutableInterface; use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase; use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row; use Drupal\migrate\Row;
...@@ -45,7 +45,7 @@ class BlockTheme extends ProcessPluginBase implements ContainerFactoryPluginInte ...@@ -45,7 +45,7 @@ class BlockTheme extends ProcessPluginBase implements ContainerFactoryPluginInte
* The plugin ID for the plugin instance. * The plugin ID for the plugin instance.
* @param mixed $plugin_definition * @param mixed $plugin_definition
* The plugin implementation definition. * The plugin implementation definition.
* @param \Drupal\migrate\Entity\MigrationInterface $migration * @param \Drupal\migrate\Plugin\MigrationInterface $migration
* The migration entity. * The migration entity.
* @param \Drupal\Core\Config\Config $theme_config * @param \Drupal\Core\Config\Config $theme_config
* The system.theme configuration factory object. * The system.theme configuration factory object.
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\MigrateExecutableInterface; use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\MigrateSkipRowException; use Drupal\migrate\MigrateSkipRowException;
use Drupal\migrate\Plugin\MigrateProcessInterface; use Drupal\migrate\Plugin\MigrateProcessInterface;
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
use Drupal\Core\Entity\Query\QueryFactory; use Drupal\Core\Entity\Query\QueryFactory;
use Drupal\Core\Field\FieldTypePluginManagerInterface; use Drupal\Core\Field\FieldTypePluginManagerInterface;
use Drupal\Core\State\StateInterface; use Drupal\Core\State\StateInterface;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Plugin\migrate\destination\EntityContentBase; use Drupal\migrate\Plugin\migrate\destination\EntityContentBase;
use Drupal\migrate\Row; use Drupal\migrate\Row;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
......
...@@ -96,7 +96,7 @@ public function testFields() { ...@@ -96,7 +96,7 @@ public function testFields() {
$this->assertIdentical("boolean", $field_storage->getType(), t('Field type is @fieldtype. It should be boolean.', array('@fieldtype' => $field_storage->getType()))); $this->assertIdentical("boolean", $field_storage->getType(), t('Field type is @fieldtype. It should be boolean.', array('@fieldtype' => $field_storage->getType())));
// Validate that the source count and processed count match up. // Validate that the source count and processed count match up.
/** @var \Drupal\migrate\Entity\MigrationInterface $migration */ /** @var \Drupal\migrate\Plugin\MigrationInterface $migration */
$migration = $this->getMigration('d6_field'); $migration = $this->getMigration('d6_field');
$this->assertIdentical($migration->getSourcePlugin()->count(), $migration->getIdMap()->processedCount()); $this->assertIdentical($migration->getSourcePlugin()->count(), $migration->getIdMap()->processedCount());
......
...@@ -114,7 +114,7 @@ public function testFields() { ...@@ -114,7 +114,7 @@ public function testFields() {
$this->assertIdentical('taxonomy_term', $field->getSetting('target_type')); $this->assertIdentical('taxonomy_term', $field->getSetting('target_type'));
// Validate that the source count and processed count match up. // Validate that the source count and processed count match up.
/** @var \Drupal\migrate\Entity\MigrationInterface $migration */ /** @var \Drupal\migrate\Plugin\MigrationInterface $migration */
$migration = $this->getMigration('d7_field'); $migration = $this->getMigration('d7_field');
$this->assertIdentical($migration->getSourcePlugin()->count(), $migration->getIdMap()->processedCount()); $this->assertIdentical($migration->getSourcePlugin()->count(), $migration->getIdMap()->processedCount());
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
namespace Drupal\Tests\field\Unit\Plugin\migrate\process\d6; namespace Drupal\Tests\field\Unit\Plugin\migrate\process\d6;
use Drupal\field\Plugin\migrate\process\d6\FieldSettings; use Drupal\field\Plugin\migrate\process\d6\FieldSettings;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\MigrateExecutableInterface; use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\Row; use Drupal\migrate\Row;
use Drupal\Tests\UnitTestCase; use Drupal\Tests\UnitTestCase;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
namespace Drupal\Tests\field\Unit\Plugin\migrate\process\d7; namespace Drupal\Tests\field\Unit\Plugin\migrate\process\d7;
use Drupal\field\Plugin\migrate\process\d7\FieldInstanceSettings; use Drupal\field\Plugin\migrate\process\d7\FieldInstanceSettings;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\MigrateExecutableInterface; use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\Row; use Drupal\migrate\Row;
use Drupal\Tests\migrate\Unit\MigrateTestCase; use Drupal\Tests\migrate\Unit\MigrateTestCase;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
namespace Drupal\Tests\field\Unit\Plugin\migrate\process\d7; namespace Drupal\Tests\field\Unit\Plugin\migrate\process\d7;
use Drupal\field\Plugin\migrate\process\d7\FieldSettings; use Drupal\field\Plugin\migrate\process\d7\FieldSettings;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\MigrateExecutableInterface; use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\Row; use Drupal\migrate\Row;
use Drupal\Tests\migrate\Unit\MigrateTestCase; use Drupal\Tests\migrate\Unit\MigrateTestCase;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Drupal\file\Plugin\migrate\cckfield\d6; namespace Drupal\file\Plugin\migrate\cckfield\d6;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Row; use Drupal\migrate\Row;
use Drupal\migrate_drupal\Plugin\migrate\cckfield\CckFieldPluginBase; use Drupal\migrate_drupal\Plugin\migrate\cckfield\CckFieldPluginBase;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Drupal\file\Plugin\migrate\cckfield\d7; namespace Drupal\file\Plugin\migrate\cckfield\d7;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Row; use Drupal\migrate\Row;
use Drupal\migrate_drupal\Plugin\migrate\cckfield\CckFieldPluginBase; use Drupal\migrate_drupal\Plugin\migrate\cckfield\CckFieldPluginBase;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Drupal\file\Plugin\migrate\cckfield\d7; namespace Drupal\file\Plugin\migrate\cckfield\d7;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate_drupal\Plugin\migrate\cckfield\CckFieldPluginBase; use Drupal\migrate_drupal\Plugin\migrate\cckfield\CckFieldPluginBase;
/** /**
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
use Drupal\Core\File\FileSystemInterface; use Drupal\Core\File\FileSystemInterface;
use Drupal\Core\StreamWrapper\LocalStream; use Drupal\Core\StreamWrapper\LocalStream;
use Drupal\Core\StreamWrapper\StreamWrapperManagerInterface; use Drupal\Core\StreamWrapper\StreamWrapperManagerInterface;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Row; use Drupal\migrate\Row;
use Drupal\migrate\MigrateException; use Drupal\migrate\MigrateException;
use Drupal\migrate\Plugin\migrate\destination\EntityContentBase; use Drupal\migrate\Plugin\migrate\destination\EntityContentBase;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
namespace Drupal\file\Plugin\migrate\process\d6; namespace Drupal\file\Plugin\migrate\process\d6;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\MigrateExecutableInterface; use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\MigrateSkipRowException; use Drupal\migrate\MigrateSkipRowException;
use Drupal\migrate\Plugin\MigrateProcessInterface; use Drupal\migrate\Plugin\MigrateProcessInterface;
...@@ -39,7 +39,7 @@ class CckFile extends ProcessPluginBase implements ContainerFactoryPluginInterfa ...@@ -39,7 +39,7 @@ class CckFile extends ProcessPluginBase implements ContainerFactoryPluginInterfa
* The plugin ID. * The plugin ID.
* @param mixed $plugin_definition * @param mixed $plugin_definition
* The plugin definition. * The plugin definition.
* @param \Drupal\migrate\Entity\MigrationInterface $migration * @param \Drupal\migrate\Plugin\MigrationInterface $migration
* The current migration. * The current migration.
* @param \Drupal\migrate\Plugin\MigrateProcessInterface $migration_plugin * @param \Drupal\migrate\Plugin\MigrateProcessInterface $migration_plugin
* An instance of the 'migration' process plugin. * An instance of the 'migration' process plugin.
......
...@@ -19,7 +19,7 @@ protected function setUpMigratedFiles() { ...@@ -19,7 +19,7 @@ protected function setUpMigratedFiles() {
$this->installEntitySchema('file'); $this->installEntitySchema('file');
$this->installConfig(['file']); $this->installConfig(['file']);
/** @var \Drupal\migrate\Entity\MigrationInterface $migration */ /** @var \Drupal\migrate\Plugin\MigrationInterface $migration */
$migration_plugin_manager = $this->container->get('plugin.manager.migration'); $migration_plugin_manager = $this->container->get('plugin.manager.migration');
/** @var \Drupal\migrate\Plugin\migration $migration */ /** @var \Drupal\migrate\Plugin\migration $migration */
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
namespace Drupal\Tests\file\Unit\Plugin\migrate\process\d6; namespace Drupal\Tests\file\Unit\Plugin\migrate\process\d6;
use Drupal\file\Plugin\migrate\process\d6\CckFile; use Drupal\file\Plugin\migrate\process\d6\CckFile;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\MigrateExecutableInterface; use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\Plugin\MigrateProcessInterface; use Drupal\migrate\Plugin\MigrateProcessInterface;
use Drupal\migrate\Row; use Drupal\migrate\Row;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
namespace Drupal\filter\Plugin\migrate\process\d6; namespace Drupal\filter\Plugin\migrate\process\d6;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\MigrateExecutableInterface; use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\Plugin\MigrateProcessInterface; use Drupal\migrate\Plugin\MigrateProcessInterface;
use Drupal\migrate\ProcessPluginBase; use Drupal\migrate\ProcessPluginBase;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
use Drupal\Core\Database\Database; use Drupal\Core\Database\Database;
use Drupal\image\Entity\ImageStyle; use Drupal\image\Entity\ImageStyle;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Exception\RequirementsException; use Drupal\migrate\Exception\RequirementsException;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase; use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Drupal\link\Plugin\migrate\cckfield; namespace Drupal\link\Plugin\migrate\cckfield;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate_drupal\Plugin\migrate\cckfield\CckFieldPluginBase; use Drupal\migrate_drupal\Plugin\migrate\cckfield\CckFieldPluginBase;
/** /**
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
namespace Drupal\link\Plugin\migrate\process\d6; namespace Drupal\link\Plugin\migrate\process\d6;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\MigrateExecutableInterface; use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase; use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row; use Drupal\migrate\Row;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* Hooks provided by the Migrate module. * Hooks provided by the Migrate module.
*/ */
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Plugin\MigrateSourceInterface; use Drupal\migrate\Plugin\MigrateSourceInterface;
use Drupal\migrate\Row; use Drupal\migrate\Row;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Drupal\migrate\Event; namespace Drupal\migrate\Event;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Symfony\Component\EventDispatcher\Event; use Symfony\Component\EventDispatcher\Event;
/** /**
...@@ -18,7 +18,7 @@ class MigrateIdMapMessageEvent extends Event { ...@@ -18,7 +18,7 @@ class MigrateIdMapMessageEvent extends Event {
/** /**
* Migration entity. * Migration entity.
* *
* @var \Drupal\migrate\Entity\MigrationInterface * @var \Drupal\migrate\Plugin\MigrationInterface
*/ */
protected $migration; protected $migration;
...@@ -46,7 +46,7 @@ class MigrateIdMapMessageEvent extends Event { ...@@ -46,7 +46,7 @@ class MigrateIdMapMessageEvent extends Event {
/** /**
* Constructs a post-save event object. * Constructs a post-save event object.
* *
* @param \Drupal\migrate\Entity\MigrationInterface $migration * @param \Drupal\migrate\Plugin\MigrationInterface $migration
* Migration entity. * Migration entity.
* @param array $source_id_values * @param array $source_id_values
* Values represent the source ID. * Values represent the source ID.
...@@ -65,7 +65,7 @@ public function __construct(MigrationInterface $migration, array $source_id_valu ...@@ -65,7 +65,7 @@ public function __construct(MigrationInterface $migration, array $source_id_valu
/** /**
* Gets the migration entity. * Gets the migration entity.
* *
* @return \Drupal\migrate\Entity\MigrationInterface * @return \Drupal\migrate\Plugin\MigrationInterface
* The migration entity involved. * The migration entity involved.
*/ */
public function getMigration() { public function getMigration() {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Drupal\migrate\Event; namespace Drupal\migrate\Event;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Symfony\Component\EventDispatcher\Event; use Symfony\Component\EventDispatcher\Event;
/** /**
...@@ -18,14 +18,14 @@ class MigrateImportEvent extends Event { ...@@ -18,14 +18,14 @@ class MigrateImportEvent extends Event {
/** /**
* Migration entity. * Migration entity.
* *
* @var \Drupal\migrate\Entity\MigrationInterface * @var \Drupal\migrate\Plugin\MigrationInterface
*/ */
protected $migration; protected $migration;
/** /**
* Constructs an import event object. * Constructs an import event object.
* *
* @param \Drupal\migrate\Entity\MigrationInterface $migration * @param \Drupal\migrate\Plugin\MigrationInterface $migration
* Migration entity. * Migration entity.
*/ */
public function __construct(MigrationInterface $migration) { public function __construct(MigrationInterface $migration) {
...@@ -35,7 +35,7 @@ public function __construct(MigrationInterface $migration) { ...@@ -35,7 +35,7 @@ public function __construct(MigrationInterface $migration) {
/** /**
* Gets the migration entity. * Gets the migration entity.
* *
* @return \Drupal\migrate\Entity\MigrationInterface * @return \Drupal\migrate\Plugin\MigrationInterface
* The migration entity involved. * The migration entity involved.
*/ */
public function getMigration() { public function getMigration() {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Drupal\migrate\Event; namespace Drupal\migrate\Event;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Row; use Drupal\migrate\Row;
/** /**
...@@ -18,7 +18,7 @@ class MigratePostRowSaveEvent extends MigratePreRowSaveEvent { ...@@ -18,7 +18,7 @@ class MigratePostRowSaveEvent extends MigratePreRowSaveEvent {
/** /**
* Constructs a post-save event object. * Constructs a post-save event object.
* *
* @param \Drupal\migrate\Entity\MigrationInterface $migration * @param \Drupal\migrate\Plugin\MigrationInterface $migration
* Migration entity. * Migration entity.
* @param \Drupal\migrate\Row $row * @param \Drupal\migrate\Row $row
* Row object. * Row object.
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Drupal\migrate\Event; namespace Drupal\migrate\Event;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Row; use Drupal\migrate\Row;
use Symfony\Component\EventDispatcher\Event; use Symfony\Component\EventDispatcher\Event;
...@@ -26,14 +26,14 @@ class MigratePreRowSaveEvent extends Event { ...@@ -26,14 +26,14 @@ class MigratePreRowSaveEvent extends Event {
/** /**
* Migration entity. * Migration entity.
* *
* @var \Drupal\migrate\Entity\MigrationInterface * @var \Drupal\migrate\Plugin\MigrationInterface
*/ */
protected $migration; protected $migration;
/** /**
* Constructs a pre-save event object. * Constructs a pre-save event object.
* *
* @param \Drupal\migrate\Entity\MigrationInterface $migration * @param \Drupal\migrate\Plugin\MigrationInterface $migration
* Migration entity. * Migration entity.
*/ */
public function __construct(MigrationInterface $migration, Row $row) { public function __construct(MigrationInterface $migration, Row $row) {
...@@ -44,7 +44,7 @@ public function __construct(MigrationInterface $migration, Row $row) { ...@@ -44,7 +44,7 @@ public function __construct(MigrationInterface $migration, Row $row) {
/** /**
* Gets the migration entity. * Gets the migration entity.
* *
* @return \Drupal\migrate\Entity\MigrationInterface * @return \Drupal\migrate\Plugin\MigrationInterface
* The migration entity being imported. * The migration entity being imported.
*/ */
public function getMigration() { public function getMigration() {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Drupal\migrate\Event; namespace Drupal\migrate\Event;
use Drupal\migrate\Entity\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
use Symfony\Component\EventDispatcher\Event; use Symfony\Component\EventDispatcher\Event;
/** /**
...@@ -18,14 +18,14 @@ class MigrateRollbackEvent extends Event { ...@@ -18,14 +18,14 @@ class MigrateRollbackEvent extends Event {
/** /**
* Migration entity. * Migration entity.
* *
* @var \Drupal\migrate\Entity\MigrationInterface * @var \Drupal\migrate\Plugin\MigrationInterface
*/ */
protected $migration; protected $migration;
/** /**
* Constructs an rollback event object. * Constructs an rollback event object.
* *
* @param \Drupal\migrate\Entity\MigrationInterface $migration * @param \Drupal\migrate\Plugin\MigrationInterface $migration
* Migration entity. * Migration entity.
*/ */
public function __construct(MigrationInterface $migration) { public function __construct(MigrationInterface $migration) {
...@@ -35,7 +35,7 @@ public function __construct(MigrationInterface $migration) { ...@@ -35,7 +35,7 @@ public function __construct(MigrationInterface $migration) {
/** /**
* Gets the migration entity. * Gets the migration entity.
* *