public function getInfoOfPluginsHavingUpdate($plugins)
{
$hasUpdates = $this->checkUpdates($plugins);
$pluginDetails = array();
foreach ($hasUpdates as $pluginHavingUpdate) {
if (empty($pluginHavingUpdate)) {
continue;
}
try {
$plugin = $this->getPluginInfo($pluginHavingUpdate['name']);
} catch (PhpException $e) {
$this->logger->error($e->getMessage());
$plugin = null;
}
if (!empty($plugin)) {
$plugin['repositoryChangelogUrl'] = $pluginHavingUpdate['repositoryChangelogUrl'];
$pluginDetails[] = $plugin;
}
}
return $pluginDetails;
}