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\Entity
Code
protected function moduleHandler() {
if (!$this->moduleHandler) {
$this->moduleHandler = \Drupal::moduleHandler();
}
return $this->moduleHandler;
}
Please login to continue.