/** * Fetch an URL based on an extraId * syntax: {{ geturlforextraid($extraId, $language) }} * * @param int $extraId The id of the extra. * @param string $language 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); }