$field->slug()
Converts the field content to a slug
$field->slug(): Kirby\Content\Field
Return type
This method modifies the existing $field
object it is applied to and returns it again.
Examples
<?= $page->title()->slug() ?>
Converts the field content to a slug
$field->slug(): Kirby\Content\Field
This method modifies the existing $field
object it is applied to and returns it again.
<?= $page->title()->slug() ?>