protected function ControllerBase::moduleHandler
protected ControllerBase::moduleHandler()
Returns the module handler.
Return value
\Drupal\Core\Extension\ModuleHandlerInterface
File
- core/lib/Drupal/Core/Controller/ControllerBase.php, line 242
Class
- ControllerBase
- Utility base class for thin controllers.
Namespace
Drupal\Core\ControllerCode
protected function moduleHandler() { if (!$this->moduleHandler) { $this->moduleHandler = $this->container()->get('module_handler'); } return $this->moduleHandler; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Controller!ControllerBase.php/function/ControllerBase::moduleHandler/8.1.x