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;
} /**
* Returns information about a specified extension.
*
* This function returns the contents of the .info.yml file for the specified
* extension.
*
* @param string $extension_name
* The name of an extension whose information shall be returned.
*
* @return mixed[]
* An associative array of extension information.
*
* @throws \Drupal\Core\Extension\Exception\UnknownExtensionException
* If there is no extension with the supplied name.
*/