$page->slug()
Returns the slug of the page
$page->slug(?string $languageCode = null): string
Parameters
| Name | Type | Default |
|---|---|---|
| $languageCode | string|null |
null |
Return type
string
Parent class
Example
<?= $page->slug() ?>
Returns the slug of the page
$page->slug(?string $languageCode = null): string
| Name | Type | Default |
|---|---|---|
| $languageCode | string|null |
null |
string
<?= $page->slug() ?>