protected function ContentLoader::getModuleHandler in YAML Content 8
Get the module handler service.
Return value
\Drupal\Core\Extension\ModuleHandlerInterface The module handler service.
File
- src/
ContentLoader/ ContentLoader.php, line 187
Class
- ContentLoader
- ContentLoader class for parsing and importing YAML content.
Namespace
Drupal\yaml_content\ContentLoaderCode
protected function getModuleHandler() {
// Lazy load the module handler service.
if (!isset($this->moduleHandler)) {
$this->moduleHandler = $this->container
->get('module_handler');
}
return $this->moduleHandler;
}