You are here

public function ModuleHandler::getImplementations in Service Container 7.2

Same name and namespace in other branches
  1. 7 src/Extension/ModuleHandler.php \Drupal\service_container\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

File

src/Extension/ModuleHandler.php, line 170
Contains Drupal\service_container\Extension\ModuleHandler.

Class

ModuleHandler
Class that manages modules in a Drupal installation.

Namespace

Drupal\service_container\Extension

Code

public function getImplementations($hook) {
  return $this->drupal7
    ->module_implements($hook);
}