function ExtensionList::recalculateInfo

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

Generates the information from .info.yml files for extensions of this type.

Return value

array[] An array of arrays of .info.yml entries keyed by the machine name.

1 call to ExtensionList::recalculateInfo()
ExtensionList::getAllAvailableInfo in core/lib/Drupal/Core/Extension/ExtensionList.php
Returns an array of info files information of available extensions.
1 method overrides ExtensionList::recalculateInfo()
DatabaseDriverList::recalculateInfo in core/lib/Drupal/Core/Extension/DatabaseDriverList.php
Generates the information from .info.yml files for extensions of this type.

File

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

Class

ExtensionList
Provides available extensions.

Namespace

Drupal\Core\Extension

Code

protected function recalculateInfo() {
    return array_map(function (Extension $extension) {
        return $extension->info;
    }, $this->getList());
}

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