Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SourcePluginBase.php

function 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 282

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;
}
RSS feed
Powered by Drupal