FOF30\Update\Collection::getCategoryUpdateSource PHP Method

getCategoryUpdateSource() public method

Returns the update source for a specific category
public getCategoryUpdateSource ( string $url, string $category, string $jVersion = null ) : string | null
$url string The URL of the collection update source
$category string The category name 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 stream URL, or null if it's not found
    public function getCategoryUpdateSource($url, $category, $jVersion = null)
    {
        $allUpdates = $this->getAllUpdates($url, $jVersion);
        if (array_key_exists($category, $allUpdates['categories'])) {
            return $allUpdates['categories'][$category]['ref'];
        } else {
            return null;
        }
    }