function Drupal::moduleHandler
Returns the module handler.
Return value
\Drupal\Core\Extension\ModuleHandlerInterface The module handler interface.
44 calls to Drupal::moduleHandler()
- CategorizingPluginManagerTrait::getModuleHandler in core/
lib/ Drupal/ Core/ Plugin/ CategorizingPluginManagerTrait.php - Returns the module handler used.
- Ckeditor5Hooks::libraryInfoAlter in core/
modules/ ckeditor5/ src/ Hook/ Ckeditor5Hooks.php - Implements hook_library_info_alter().
- ContextualLinks::moduleHandler in core/
modules/ contextual/ src/ Element/ ContextualLinks.php - Wraps the module handler.
- DefaultPluginManagerTest::testDefaultPluginManager in core/
tests/ Drupal/ KernelTests/ Core/ Plugin/ DefaultPluginManagerTest.php - Tests annotations and attributes on the default plugin manager.
- DrupalTest::testModuleHandler in core/
tests/ Drupal/ Tests/ Core/ DrupalTest.php - Tests the moduleHandler() method.
File
-
core/
lib/ Drupal.php, line 558
Class
- Drupal
- Static Service Container wrapper.
Code
public static function moduleHandler() {
return static::getContainer()->get('module_handler');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.