ModuleHandlerInterface::isLoaded

public ModuleHandlerInterface::isLoaded() Returns whether all modules have been loaded. Return value bool A Boolean indicating whether all modules have been loaded. This means all modules; the load status of bootstrap modules cannot be checked. File core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 39 Class ModuleHandlerInterface Interface for classes that manage a set of enabled modules. Namespace Drupal\Core\Extension Code public function isLoaded();

ModuleHandlerInterface::invokeAll

public ModuleHandlerInterface::invokeAll($hook, array $args = array()) Invokes a hook in all enabled modules that implement it. Parameters string $hook: The name of the hook to invoke. array $args: Arguments to pass to the hook. Return value array An array of return values of the hook implementations. If modules return arrays from their implementations, those are merged into one array recursively. Note: integer keys in arrays will be lost, as the merge is done using array_merge_recursive(). F

ModuleHandlerInterface::invoke

public ModuleHandlerInterface::invoke($module, $hook, array $args = array()) Invokes a hook in a particular module. Parameters string $module: The name of the module (without the .module extension). string $hook: The name of the hook to invoke. array $args: Arguments to pass to the hook implementation. Return value mixed The return value of the hook implementation. File core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 223 Class ModuleHandlerInterface Interface for classes

ModuleHandlerInterface::implementsHook

public ModuleHandlerInterface::implementsHook($module, $hook) Returns whether a given module implements a given hook. Parameters string $module: The name of the module (without the .module extension). string $hook: The name of the hook (e.g. "help" or "menu"). Return value bool TRUE if the module is both installed and enabled, and the hook is implemented in that module. File core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 208 Class ModuleHandlerInterface Interface for cla

ModuleHandlerInterface::getName

public ModuleHandlerInterface::getName($module) Gets the human readable name of a given module. Parameters string $module: The machine name of the module which title should be shown. Return value string Returns the human readable name of the module or the machine name passed in if no matching module is found. File core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 310 Class ModuleHandlerInterface Interface for classes that manage a set of enabled modules. Namespace Drupal

ModuleHandlerInterface::getModuleList

public ModuleHandlerInterface::getModuleList() Returns the list of currently active modules. Return value \Drupal\Core\Extension\Extension[] An associative array whose keys are the names of the modules and whose values are Extension objects. File core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 53 Class ModuleHandlerInterface Interface for classes that manage a set of enabled modules. Namespace Drupal\Core\Extension Code public function getModuleList();

ModuleHandlerInterface::getModuleDirectories

public ModuleHandlerInterface::getModuleDirectories() Returns an array of directories for all enabled modules. Useful for tasks such as finding a file that exists in all module directories. Return value array File core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 298 Class ModuleHandlerInterface Interface for classes that manage a set of enabled modules. Namespace Drupal\Core\Extension Code public function getModuleDirectories();

ModuleHandlerInterface::getModule

public ModuleHandlerInterface::getModule($name) Returns a module extension object from the currently active modules list. Parameters string $name: The name of the module to return. Return value \Drupal\Core\Extension\Extension An extension object. Throws \InvalidArgumentException Thrown when the requested module does not exist. File core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 67 Class ModuleHandlerInterface Interface for classes that manage a set of enabled modules.

ModuleHandlerInterface::getImplementations

public ModuleHandlerInterface::getImplementations($hook) 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. File core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 184 Class ModuleHandlerInterface Interface for classes that manage a set of enabled modules. Namespace Drupal\Core\Extension Code public function get

ModuleHandlerInterface::getHookInfo

public ModuleHandlerInterface::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(). See also hook_hook_info() File core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 173 Class ModuleHandlerInterface Interface for classes that manage a