Skip to content

Kirby 4.4.1

$field->slug()

Converts the field content to a slug

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

Return type

Kirby\Content\Field

Example

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