function ExtensionList::getAllInstalledInfo

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::getAllInstalledInfo()
  2. 8.9.x core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::getAllInstalledInfo()
  3. 10 core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::getAllInstalledInfo()

Returns an array of info files information of installed extensions.

This function returns the processed contents (with added defaults) of the .info.yml files.

Return value

array[] An associative array of extension information arrays, keyed by extension name.

1 call to ExtensionList::getAllInstalledInfo()
ExtensionList::getExtensionInfo in core/lib/Drupal/Core/Extension/ExtensionList.php
Returns information about a specified extension.
1 method overrides ExtensionList::getAllInstalledInfo()
DatabaseDriverList::getAllInstalledInfo in core/lib/Drupal/Core/Extension/DatabaseDriverList.php
Returns an array of info files information of installed extensions.

File

core/lib/Drupal/Core/Extension/ExtensionList.php, line 394

Class

ExtensionList
Provides available extensions.

Namespace

Drupal\Core\Extension

Code

public function getAllInstalledInfo() {
    return array_intersect_key($this->getAllAvailableInfo(), array_flip($this->getInstalledExtensionNames()));
}

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