8.5.x SourcePluginBase.php SourcePluginBase::getModuleHandler()
8.0.x SourcePluginBase.php SourcePluginBase::getModuleHandler()
8.1.x SourcePluginBase.php SourcePluginBase::getModuleHandler()
8.2.x SourcePluginBase.php SourcePluginBase::getModuleHandler()
8.3.x SourcePluginBase.php SourcePluginBase::getModuleHandler()
8.4.x SourcePluginBase.php SourcePluginBase::getModuleHandler()
8.6.x SourcePluginBase.php SourcePluginBase::getModuleHandler()

Gets the module handler.

Return value

\Drupal\Core\Extension\ModuleHandlerInterface The module handler.

File

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

Class

SourcePluginBase
The base class for source plugins.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

protected function getModuleHandler() {
  if (!isset($this->moduleHandler)) {
    $this->moduleHandler = \Drupal::moduleHandler();
  }
  return $this->moduleHandler;
}