You are here

public function ModuleHandler::getHookInfo in Service Container 7.2

Same name and namespace in other branches
  1. 7 src/Extension/ModuleHandler.php \Drupal\service_container\Extension\ModuleHandler::getHookInfo()

Retrieves a list of hooks that are declared through hook_hook_info().

Return value

array An associative array whose keys are hook names and whose values are an associative array containing a group name. The structure of the array is the same as the return value of hook_hook_info().

Overrides ModuleHandlerInterface::getHookInfo

See also

hook_hook_info()

File

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

Class

ModuleHandler
Class that manages modules in a Drupal installation.

Namespace

Drupal\service_container\Extension

Code

public function getHookInfo() {
  return $this->drupal7
    ->module_hook_info();
}