Skip to content

Kirby 4.4.1

$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

Kirby\Cms\Page

Example

<?= $page->slug() ?>