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

getURL() public static method

Get the URL for a given pageId & language syntax: {{ geturl($pageId, $language) }}
public static getURL ( integer $pageId, string $language = null ) : string
$pageId integer The id of the page to build the URL for.
$language string The language to use, if not provided we will use the loaded language.
return string
    public static function getURL($pageId, $language = null)
    {
        $language = $language !== null ? (string) $language : null;
        return Navigation::getURL((int) $pageId, $language);
    }