ModuleHandler::$modulesByHook

Lists of module names by hook.

The indices are exactly the same as in $listenersByHook.

Type: array>

File

core/lib/Drupal/Core/Extension/ModuleHandler.php, line 77

Class

ModuleHandler
Class that manages modules in a Drupal installation.

Namespace

Drupal\Core\Extension

Code

protected array $modulesByHook = [];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.