public function ExtensionList::getAllInstalledInfo in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::getAllInstalledInfo()
- 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\ExtensionCode
public function getAllInstalledInfo() {
return array_intersect_key($this
->getAllAvailableInfo(), array_flip($this
->getInstalledExtensionNames()));
}