function ExtensionList::getAllInstalledInfo

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::getAllInstalledInfo()
  2. 10 core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::getAllInstalledInfo()
  3. 11.x 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.

File

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

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.