Reference

Guide

$page->changeTemplate()

Changes the page template

$page->changeTemplate(string $template): Kirby\Cms\Page

Parameters

Name Type Default Description
$template string

Return type

Kirby\Cms\Page

Exceptions

Type Description
Kirby\Exception\LogicException

If the textfile cannot be renamed/moved

Details

Source code

kirby/src/Cms/PageActions.php#L257