Url
URL class. Builds an URL from a Page, a Menu Entry, an Asset or a string.
Table of Contents
Properties
Methods
- __construct() : mixed
- Creates an URL from a Page, a Menu Entry, an Asset or a string.
- __toString() : string
- If called like a string returns built URL.
- getUrl() : string
- Returns built URL.
Properties
$builder
protected
Builder
$builder
$config
protected
Config
$config
$url
protected
string
$url
$slugifier
private
static Page
$slugifier
Slugifier
Methods
__construct()
Creates an URL from a Page, a Menu Entry, an Asset or a string.
public
__construct(Builder $builder, Page|Entry|Asset|string|null $value[, array<string|int, mixed>|null $options = null ]) : mixed
Parameters
__toString()
If called like a string returns built URL.
public
__toString() : string
Return values
stringgetUrl()
Returns built URL.
public
getUrl() : string