com\setasign\SetaSite\ViewHelper

AbsoluteUri

File: /SetaSite/src/ViewHelper/AbsoluteUri.php

Class hierarchy

Summary

Properties

$pageSettings

$requestPathPrefix


Methods

__construct()

public AbsoluteUri::__construct (
\com\setasign\SetaFramework\Bootstrap\RequestPathPrefix $requestPathPrefix,
\com\setasign\SetaSite\Page\PageSettings $pageSettings
)

Constructor

Parameters
$requestPathPrefix : \com\setasign\SetaFramework\Bootstrap\RequestPathPrefix
 
$pageSettings : \com\setasign\SetaSite\Page\PageSettings
 

__invoke()

public AbsoluteUri::__invoke (
string $uri,
null|bool|string $language = null
): string

Gets the absolute uri

Parameters
$uri : string
 
$language : null|bool|string

If not set the actual language will be used. If false no language will be added to the uri.