function Drupal::moduleHandler
Returns the module handler.
Return value
\Drupal\Core\Extension\ModuleHandlerInterface
30 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.
- drupal_flush_all_caches in core/
includes/ common.inc - Rebuilds the container, 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.
File
-
core/
lib/ Drupal.php, line 542
Class
- Drupal
- Static Service Container wrapper.
Code
public static function moduleHandler() {
return static::getContainer()->get('module_handler');
}