$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
Returns the first element
$roles->first(): Role|null
Kirby\Cms\Roleornull
Kirby\Cms\Roles
inherited from Kirby\Toolkit\Collection