protected function ModuleExtensionList::getInstalledExtensionNames in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Extension/ModuleExtensionList.php \Drupal\Core\Extension\ModuleExtensionList::getInstalledExtensionNames()
Returns a list of machine names of installed extensions.
Return value
string[] The machine names of all installed extensions of this type.
Overrides ExtensionList::getInstalledExtensionNames
File
- core/
lib/ Drupal/ Core/ Extension/ ModuleExtensionList.php, line 199
Class
- ModuleExtensionList
- Provides a list of available modules.
Namespace
Drupal\Core\ExtensionCode
protected function getInstalledExtensionNames() {
return array_keys($this->moduleHandler
->getModuleList());
}