PHP Interface Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathInterface

Exibir arquivo Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
getContentPath ( string $route, string $webspaceKey = null, string $locale = null, string $domain = null, string $scheme = 'http' ) : string Generates real url for given content.
getContentRootPath ( boolean $full = false ) : string Generates real root url.

Method Details

getContentPath() public method

Generates real url for given content.
public getContentPath ( string $route, string $webspaceKey = null, string $locale = null, string $domain = null, string $scheme = 'http' ) : string
$route string
$webspaceKey string
$locale string
$domain string
$scheme string
return string

getContentRootPath() public method

Generates real root url.
public getContentRootPath ( boolean $full = false ) : string
$full boolean if TRUE the full url will be returned, if FALSE only the current prefix is returned
return string