8.5.x SourcePluginBase.php SourcePluginBase::getSourceModule()
8.4.x SourcePluginBase.php SourcePluginBase::getSourceModule()
8.6.x SourcePluginBase.php SourcePluginBase::getSourceModule()

Gets the source module providing the source data.

Return value

string|null The source module or NULL if not found.

Overrides MigrateSourceInterface::getSourceModule

File

core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php, line 592

Class

SourcePluginBase
The base class for source plugins.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

public function getSourceModule() {
  if (!empty($this->configuration['source_module'])) {
    return $this->configuration['source_module'];
  }
  elseif (!empty($this->pluginDefinition['source_module'])) {
    return $this->pluginDefinition['source_module'];
  }
  return NULL;
}