$users->role()
Shortcut for $users->filter('role', 'admin')
$users->role(string $role): Kirby\Cms\Users
Parameters
Name | Type | Default |
---|---|---|
$role * | string |
– |
Return type
This method does not modify the existing $users
object but returns a new object with the changes applied. Learn more →