function ModuleHandlerInterface::getModuleList

Same name in other branches
  1. 9 core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::getModuleList()
  2. 8.9.x core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::getModuleList()
  3. 11.x core/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.

File

core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 55

Class

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

Namespace

Drupal\Core\Extension

Code

public function getModuleList();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.