diff -u b/core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php b/core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php --- b/core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php +++ b/core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php @@ -12,7 +12,6 @@ use Drupal\migrate\Plugin\MigrateIdMapInterface; use Drupal\migrate\Plugin\MigrateSourceInterface; use Drupal\migrate\Row; -use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSourceTrait; /** * The base class for source plugins. @@ -117,10 +116,6 @@ */ abstract class SourcePluginBase extends PluginBase implements MigrateSourceInterface, RollbackAwareInterface { - use DrupalSourceTrait { - getSourceModule as drupalGetSourceModule; - } - /** * The module handler service. * @@ -634,7 +629,13 @@ */ public function getSourceModule() { @trigger_error('MigrateSourceInterface::getSourceModule() is deprecated in drupal:10.0.0 and is removed from drupal:11.0.0. Instead you should use DrupalSourceInterface::getSourceModule(). See https://www.drupal.org/node/3306373', E_USER_DEPRECATED); - return $this->drupalGetSourceModule(); + if (!empty($this->configuration['source_module'])) { + return $this->configuration['source_module']; + } + elseif (!empty($this->pluginDefinition['source_module'])) { + return $this->pluginDefinition['source_module']; + } + return NULL; } }