Skip to content

Kirby 6.0.0

$pageValidators->validateSlugLength()

Validates that the slug is not empty and does not exceed the maximum length to make sure that the directory name will be accepted by the filesystem

$pageValidators->validateSlugLength(string $slug): void

Parameters

Name Type Default
$slugrequired string no default value

Parent class

Kirby\Guards\PageValidators