You are here

public function ExtensionList::getAllInstalledInfo in Drupal 10

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

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()));
}