public function ModuleHandler::getImplementations in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Extension/ModuleHandler.php \Drupal\Core\Extension\ModuleHandler::getImplementations()
Determines which modules are implementing a hook.
Parameters
string $hook: The name of the hook (e.g. "help" or "menu").
Return value
array An array with the names of the modules which are implementing this hook.
Overrides ModuleHandlerInterface::getImplementations
2 calls to ModuleHandler::getImplementations()
- ModuleHandler::alter in core/
lib/ Drupal/ Core/ Extension/ ModuleHandler.php - Passes alterable variables to specific hook_TYPE_alter() implementations.
- ModuleHandler::invokeAll in core/
lib/ Drupal/ Core/ Extension/ ModuleHandler.php - Invokes a hook in all enabled modules that implement it.
File
- core/
lib/ Drupal/ Core/ Extension/ ModuleHandler.php, line 317 - Contains \Drupal\Core\Extension\ModuleHandler.
Class
- ModuleHandler
- Class that manages modules in a Drupal installation.
Namespace
Drupal\Core\ExtensionCode
public function getImplementations($hook) {
$implementations = $this
->getImplementationInfo($hook);
return array_keys($implementations);
}