ControllerBase::moduleHandler

protected ControllerBase::moduleHandler()

Returns the module handler.

Return value

\Drupal\Core\Extension\ModuleHandlerInterface

File

core/lib/Drupal/Core/Controller/ControllerBase.php, line 237

Class

ControllerBase
Utility base class for thin controllers.

Namespace

Drupal\Core\Controller

Code

protected function moduleHandler() {
  if (!$this->moduleHandler) {
    $this->moduleHandler = $this->container()->get('module_handler');
  }
  return $this->moduleHandler;
}
doc_Drupal
2016-10-29 08:58:57
Comments
Leave a Comment

Please login to continue.