Skip to content

Kirby 4.5.0

$field->slug()

Converts the field content to a slug

$field->slug(): Kirby\Content\Field

Return type

Kirby\Content\Field

Example

<?= $page->title()->slug() ?>