Skip to content

Kirby 3.9.8

SiteRules::changeTitle()

Validates if the site title can be changed

SiteRules::changeTitle(Kirby\Cms\Site $site, string $title): bool

Parameters

Name Type Default
$site * Kirby\Cms\Site
$title * string

Return type

bool

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If the title is empty
Kirby\Exception\PermissionException If the user is not allowed to change the title

Parent class

Kirby\Cms\SiteRules