PageRules::changeSlug()
Validates if the slug for the page can be changed
PageRules::changeSlug(Kirby\Cms\Page $page, string $slug): void
Parameters
Name | Type | Default |
---|---|---|
$pagerequired | Kirby\Cms\Page |
no default value |
$slugrequired | string |
no default value |
Exceptions
Type | Description |
---|---|
Kirby\Exception\DuplicateException |
If a page with this slug already exists |
Kirby\Exception\PermissionException |
If the user is not allowed to change the slug |