diff --git a/core/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php b/core/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php index 32cb7aa..19a8b24 100644 --- a/core/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php +++ b/core/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php @@ -2,9 +2,9 @@ namespace Drupal\Tests\migrate\Kernel\Plugin; -use Drupal\Component\Plugin\Exception\BadPluginDefinitionException; use Drupal\Component\Render\FormattableMarkup; use Drupal\KernelTests\FileSystemModuleDiscoveryDataProviderTrait; +use Drupal\migrate\Plugin\Exception\BadPluginDefinitionException; use Drupal\migrate_drupal\Plugin\MigrateFieldPluginManager; use Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase; diff --git a/core/modules/migrate_drupal/src/Plugin/MigrateFieldPluginManager.php b/core/modules/migrate_drupal/src/Plugin/MigrateFieldPluginManager.php index 2935fb2..7a9c479 100644 --- a/core/modules/migrate_drupal/src/Plugin/MigrateFieldPluginManager.php +++ b/core/modules/migrate_drupal/src/Plugin/MigrateFieldPluginManager.php @@ -2,8 +2,8 @@ namespace Drupal\migrate_drupal\Plugin; -use Drupal\Component\Plugin\Exception\BadPluginDefinitionException; use Drupal\Component\Plugin\Exception\PluginNotFoundException; +use Drupal\migrate\Plugin\Exception\BadPluginDefinitionException; use Drupal\migrate\Plugin\MigratePluginManager; use Drupal\migrate\Plugin\MigrationInterface; @@ -62,7 +62,7 @@ public function processDefinition(&$definition, $plugin_id) { foreach (['core', 'source_module', 'destination_module'] as $required_property) { if (empty($definition[$required_property])) { - throw new BadPluginDefinitionException($plugin_id, $definition['id'], $required_property); + throw new BadPluginDefinitionException($plugin_id, $required_property); } } }