Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HandlerBase.php

function HandlerBase::getModuleHandler

Gets the module handler.

Return value

\Drupal\Core\Extension\ModuleHandlerInterface

File

core/modules/views/src/Plugin/views/HandlerBase.php, line 310

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal