Skip to content

Kirby 6.0.0

$pageValidators->validateSlugProtectedPaths()

Validates that a top-level slug does not shadow one of the paths that Kirby reserves for the API, assets, media and Panel

$pageValidators->validateSlugProtectedPaths(string $slug, Site|Page|null $parent = null): void

Parameters

Name Type Default
$slugrequired string no default value
$parent Kirby\Cms\SiteorKirby\Cms\Pageornull null

Parent class

Kirby\Guards\PageValidators