You are here

public function ModuleHandler::getModuleList in Zircon Profile 8

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

Overrides ModuleHandlerInterface::getModuleList

1 call to ModuleHandler::getModuleList()
ModuleHandler::getModuleDirectories in core/lib/Drupal/Core/Extension/ModuleHandler.php
Returns an array of directories for all enabled modules. Useful for tasks such as finding a file that exists in all module directories.

File

core/lib/Drupal/Core/Extension/ModuleHandler.php, line 162
Contains \Drupal\Core\Extension\ModuleHandler.

Class

ModuleHandler
Class that manages modules in a Drupal installation.

Namespace

Drupal\Core\Extension

Code

public function getModuleList() {
  return $this->moduleList;
}