FOF30\Update\Collection::getExtensionUpdateSource PHP Method

getExtensionUpdateSource() public method

type=file and element=joomla is Joomla! itself.
public getExtensionUpdateSource ( string $url, string $type, string $element, string $jVersion = null ) : string | null
$url string The URL of the collection update source
$type string The extension type you want to get the update source URL of
$element string The extension element you want to get the update source URL of
$jVersion string Joomla! version to fetch updates for, or null to use JVERSION
return string | null The update source URL or null if the extension is not found
    public function getExtensionUpdateSource($url, $type, $element, $jVersion = null)
    {
        $allUpdates = $this->getExtensions($url, $type, $jVersion);
        if (empty($allUpdates)) {
            return null;
        } elseif (array_key_exists($element, $allUpdates)) {
            return $allUpdates[$element]['detailsurl'];
        } else {
            return null;
        }
    }