Skip to content

Kirby 4.2.0

PageRules::validateTitleLength()

Ensures that the page title is not empty

PageRules::validateTitleLength(string $title): void

Parameters

Name Type Default
$title * string

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If the title is empty

Parent class

Kirby\Cms\PageRules