You are here

public function ModuleHandlerInterface::getModuleList in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\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.

1 method overrides ModuleHandlerInterface::getModuleList()
ModuleHandler::getModuleList in src/Extension/ModuleHandler.php
Returns the list of currently active modules.

File

lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 58
Contains \Drupal\Core\Extension\ModuleHandlerInterface.

Class

ModuleHandlerInterface
Interface for classes that manage a set of enabled modules.

Namespace

Drupal\Core\Extension

Code

public function getModuleList();