protected function EntityHandlerBase::moduleHandler
protected EntityHandlerBase::moduleHandler()
Gets the module handler.
Return value
\Drupal\Core\Extension\ModuleHandlerInterface The module handler.
File
- core/lib/Drupal/Core/Entity/EntityHandlerBase.php, line 36
Class
- EntityHandlerBase
- Provides a base class for entity handlers.
Namespace
Drupal\Core\EntityCode
protected function moduleHandler() { if (!$this->moduleHandler) { $this->moduleHandler = \Drupal::moduleHandler(); } 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!Entity!EntityHandlerBase.php/function/EntityHandlerBase::moduleHandler/8.1.x