protected function ModuleStream::getModuleHandler in System stream wrapper 8
Returns the module handler service.
Return value
\Drupal\Core\Extension\ModuleHandlerInterface The module handler service.
File
- src/
StreamWrapper/ ModuleStream.php, line 56
Class
- ModuleStream
- Defines the read-only module:// stream wrapper for module files.
Namespace
Drupal\system_stream_wrapper\StreamWrapperCode
protected function getModuleHandler() {
if (!isset($this->moduleHandler)) {
$this->moduleHandler = \Drupal::moduleHandler();
}
return $this->moduleHandler;
}