Sets the scheme for a URL.
- Full name:
set_url_scheme - Defined in:
cms/core/Shared/Helpers/url.php
Parameters
| Parameter | Type | Description |
|---|---|---|
$url |
string | Absolute URL that includes a scheme |
$scheme |
string|null | Optional. Scheme to give $url. Currently, 'http', 'https', 'login', |
| 'admin', 'relative', 'rest' or null. Default null. |
Return Value
string
$url URL with chosen scheme.