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

Breadcrumb

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

function EntityHandlerBase::moduleHandler

Gets the module handler.

Return value

\Drupal\Core\Extension\ModuleHandlerInterface The module handler.

1 call to EntityHandlerBase::moduleHandler()
BlockViewBuilder::viewMultiple in core/modules/block/src/BlockViewBuilder.php
Builds the render array for the provided entities.

File

core/lib/Drupal/Core/Entity/EntityHandlerBase.php, line 31

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

API Navigation

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