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

Details

Source code

kirby/src/Cms/PageActions.php#L238