Skip to content

Kirby 5.0.4

$page->uid()

Returns the UID of the page. The UID is basically the same as the slug, but stays the same on multi-language sites. Whereas the slug can be translated.

Alias for Kirby\Cms\Page::slug()

$page->uid(): string

Return type

string

This method modifies the existing $page object it is applied to and returns it again.

Parent class

Kirby\Cms\Page

Examples

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