Skip to content

Kirby 5.0.4

SiteRules::changeTitle()

Validates if the site title can be changed

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

Parameters

Name Type Default
$siterequired Kirby\Cms\Site no default value
$titlerequired string no default value

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