You are here

protected function HandlerBase::getModuleHandler in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::getModuleHandler()

Gets the module handler.

Return value

\Drupal\Core\Extension\ModuleHandlerInterface

File

core/modules/views/src/Plugin/views/HandlerBase.php, line 320
Contains \Drupal\views\Plugin\views\HandlerBase.

Class

HandlerBase
Base class for Views handler plugins.

Namespace

Drupal\views\Plugin\views

Code

protected function getModuleHandler() {
  if (!$this->moduleHandler) {
    $this->moduleHandler = \Drupal::moduleHandler();
  }
  return $this->moduleHandler;
}