protected function ExtensionList::doList in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::doList()
- 9 core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::doList()
Builds the list of extensions.
Return value
\Drupal\Core\Extension\Extension[] Processed extension objects, keyed by machine name.
Throws
\Drupal\Core\Extension\InfoParserException If one of the .info.yml files is incomplete, or causes a parsing error.
1 method overrides ExtensionList::doList()
- ThemeExtensionList::doList in core/
lib/ Drupal/ Core/ Extension/ ThemeExtensionList.php - Builds the list of extensions.
File
- core/
lib/ Drupal/ Core/ Extension/ ExtensionList.php, line 310
Class
- ExtensionList
- Provides available extensions.
Namespace
Drupal\Core\ExtensionCode
protected function doList() {
// Find extensions.
$extensions = $this
->doScanExtensions();
// Read info files for each extension.
foreach ($extensions as $extension) {
$extension->info = $this
->createExtensionInfo($extension);
// Invoke hook_system_info_alter() to give installed modules a chance to
// modify the data in the .info.yml files if necessary.
$this->moduleHandler
->alter('system_info', $extension->info, $extension, $this->type);
}
return $extensions;
}