Skip to content

Kirby 6.0.0

$roles->first()

Returns the first element

$roles->first(): Role|null

Return types

Kirby\Cms\Roleornull

Parent class

Kirby\Cms\Roles inherited from Kirby\Toolkit\Collection