Frontend\Core\Engine\TemplateModifiers::getURLForExtraId PHP Method

getURLForExtraId() public static method

Fetch an URL based on an extraId syntax: {{ geturlforextraid($extraId, $language) }}
public static getURLForExtraId ( integer $extraId, string $language = null ) : string
$extraId integer The id of the extra.
$language string The language to use, if not provided we will use the loaded language.
return string
    public static function getURLForExtraId($extraId, $language = null)
    {
        $language = $language !== null ? (string) $language : null;
        return Navigation::getURLForExtraId((int) $extraId, $language);
    }