Reference

Guide

$page->changeSlug()

Changes the slug/uid of the page

$page->changeSlug(string $slug, string $languageCode = null): Kirby\Cms\Page

Parameters

Name Type Default Description
$slug string
$languageCode string null

Return type

Kirby\Cms\Page

Details

Source code

kirby/src/Cms/PageActions.php#L74