You are here

protected function ModuleExtensionList::getInstalledExtensionNames in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Extension/ModuleExtensionList.php \Drupal\Core\Extension\ModuleExtensionList::getInstalledExtensionNames()
  2. 10 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 198

Class

ModuleExtensionList
Provides a list of available modules.

Namespace

Drupal\Core\Extension

Code

protected function getInstalledExtensionNames() {
  return array_keys($this->moduleHandler
    ->getModuleList());
}