Beta version

class NodesSourcesUrlGenerator implements UrlGeneratorInterface

Methods

__construct(Request $request = null, NodesSources $nodeSource = null, bool $forceLocale = false)

No description

string
getUrl(boolean $absolute = false, string $canonicalSchemeAuthority = '')

Get a resource Url.

string
getNonContextualUrl(Theme $theme = null)

Return a NodesSources url without hostname and without root folder.

Details

at line 48
__construct(Request $request = null, NodesSources $nodeSource = null, bool $forceLocale = false)

Parameters

Request $request
NodesSources $nodeSource
bool $forceLocale

at line 67
string getUrl(boolean $absolute = false, string $canonicalSchemeAuthority = '')

Get a resource Url.

Parameters

boolean $absolute Use Url with domain name [default: false]
string $canonicalSchemeAuthority Override protocol, host and port to generate Url. Need absolute to true

Return Value

string

at line 98
string getNonContextualUrl(Theme $theme = null)

Return a NodesSources url without hostname and without root folder.

It returns a relative url to Roadiz, not relative to your server root.

Parameters

Theme $theme

Return Value

string