$pageActions->changeSlug()
Changes the slug/uid of the page
$pageActions->changeSlug(string $slug, string|null $languageCode = null): Kirby\Cms\PageActions
Parameters
| Name | Type | Default |
|---|---|---|
| $slugrequired | string |
no default value |
| $languageCode | stringornull |
null
|
Return types
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