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\Entity

Code

protected function moduleHandler() {
  if (!$this->moduleHandler) {
    $this->moduleHandler = \Drupal::moduleHandler();
  }
  return $this->moduleHandler;
}
doc_Drupal
2016-10-29 09:06:37
Comments
Leave a Comment

Please login to continue.