function ModuleHandler::getModuleList

Same name in other branches
  1. 9 core/lib/Drupal/Core/Extension/ModuleHandler.php \Drupal\Core\Extension\ModuleHandler::getModuleList()
  2. 10 core/lib/Drupal/Core/Extension/ModuleHandler.php \Drupal\Core\Extension\ModuleHandler::getModuleList()
  3. 11.x core/lib/Drupal/Core/Extension/ModuleHandler.php \Drupal\Core\Extension\ModuleHandler::getModuleList()

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 165

Class

ModuleHandler
Class that manages modules in a Drupal installation.

Namespace

Drupal\Core\Extension

Code

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

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