You are here

public static function Drupal::moduleHandler in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal.php \Drupal::moduleHandler()
  2. 9 core/lib/Drupal.php \Drupal::moduleHandler()

Returns the module handler.

Return value

\Drupal\Core\Extension\ModuleHandlerInterface

269 calls to Drupal::moduleHandler()
AlterTest::testDrupalAlter in core/modules/system/tests/src/Functional/Common/AlterTest.php
Tests if the theme has been altered.
authorize.php in core/authorize.php
Administrative script for running authorized file operations.
basic_auth_help in core/modules/basic_auth/basic_auth.module
Implements hook_help().
batch_process in core/includes/form.inc
Processes the batch.
BlockPluginCollection::initializePlugin in core/modules/block/src/BlockPluginCollection.php

... See full list

File

core/lib/Drupal.php, line 529

Class

Drupal
Static Service Container wrapper.

Code

public static function moduleHandler() {
  return static::getContainer()
    ->get('module_handler');
}