protected function SourcePluginBase::getModuleHandler in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::getModuleHandler()
- 9 core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::getModuleHandler()
Gets the module handler.
Return value
\Drupal\Core\Extension\ModuleHandlerInterface The module handler.
1 call to SourcePluginBase::getModuleHandler()
- SourcePluginBase::prepareRow in core/
modules/ migrate/ src/ Plugin/ migrate/ source/ SourcePluginBase.php - Adds additional data to the row.
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\sourceCode
protected function getModuleHandler() {
if (!isset($this->moduleHandler)) {
$this->moduleHandler = \Drupal::moduleHandler();
}
return $this->moduleHandler;
}