public function ModuleHandler::getModuleList in Drupal 8
Same name and namespace in other branches
- 9 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 165
Class
- ModuleHandler
- Class that manages modules in a Drupal installation.
Namespace
Drupal\Core\ExtensionCode
public function getModuleList() {
return $this->moduleList;
}