Skip to content

Kirby 3.6.6

PageRules::changeSlug()

Validates if the slug for the page can be changed

PageRules::changeSlug(Kirby\Cms\Page $page, string $slug): bool

Parameters

Name Type Default
$page * Kirby\Cms\Page
$slug * string

Return type

bool

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

Parent class

Kirby\Cms\PageRules