function SourcePluginBase::getSourceModule

Same name in other branches
  1. 9 core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::getSourceModule()
  2. 8.9.x core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::getSourceModule()
  3. 11.x core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::getSourceModule()

Overrides MigrateSourceInterface::getSourceModule

1 call to SourcePluginBase::getSourceModule()
DrupalSqlBase::checkRequirements in core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php
Checks if requirements for this plugin are OK.

File

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

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.