$pageactions->changeSlug()
Changes the slug/uid of the page
$pageactions->changeSlug(string $slug, string $languageCode = null): Kirby\Cms\PageActions
Parameters
| Name | Type | Default |
|---|---|---|
| $slug * | string |
– |
| $languageCode | string |
null |
Return type
Kirby\Cms\PageActions
This method does not modify the existing $pageactions object but returns a new object with the changes applied. Learn more →
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\LogicException |
If the directory cannot be moved |
Parent class
Kirby\Cms\PageActions