You are here

public static function Drupal::moduleHandler in Zircon Profile 8

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

Returns the module handler.

Return value

\Drupal\Core\Extension\ModuleHandlerInterface

28 calls to Drupal::moduleHandler()
CategorizingPluginManagerTrait::getModuleHandler in core/lib/Drupal/Core/Plugin/CategorizingPluginManagerTrait.php
Returns the module handler used.
ContextualLinks::moduleHandler in core/modules/contextual/src/Element/ContextualLinks.php
Wraps the module handler.
DrupalTest::testModuleHandler in core/tests/Drupal/Tests/Core/DrupalTest.php
Tests the moduleHandler() method.
drupal_flush_all_caches in core/includes/common.inc
Flushes all persistent caches, resets all variables, and rebuilds all data structures.
EntityHandlerBase::moduleHandler in core/lib/Drupal/Core/Entity/EntityHandlerBase.php
Gets the module handler.

... See full list

File

core/lib/Drupal.php, line 470
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

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