You are here

protected function ExtensionList::recalculateInfo in Drupal 10

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

File

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

Class

ExtensionList
Provides available extensions.

Namespace

Drupal\Core\Extension

Code

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