Skip to content

Kirby 3.5.7.1

PageRules::changeTemplate()

Validates if the template of the page can be changed

PageRules::changeTemplate(Kirby\Cms\Page $page, string $template): bool

Parameters

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

Return type

bool

Exceptions

Type Description
Kirby\Exception\LogicException If the template of the page cannot be changed at all
Kirby\Exception\PermissionException If the user is not allowed to change the template

Parent class

Kirby\Cms\PageRules