class NodesSourcesUrlGenerator implements UrlGeneratorInterface (View source)

Properties

protected $request
protected $nodeSource
protected $forceLocale

Methods

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

No description

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

Get a resource Url.

string
getNonContextualUrl(Theme $theme = null)

Return a NodesSources url without hostname and without root folder.

Details

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

Parameters

Request $request
NodesSources $nodeSource
bool $forceLocale

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

deprecated Do not use this method directly to generate NodesSources URI but ChainRouter::generate method.

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

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