$roles->find()
Find one or multiple elements by id
$roles->find(string|list ...$keys): Role|Roles
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| ...$keys | stringorlist<string> |
no default value | One or more keys, or a single array of keys |
Return types
Kirby\Cms\RoleorKirby\Cms\Roles
This method does not modify the existing $roles object but returns a new object with the changes applied. Learn more →
Parent class
Kirby\Cms\Roles
inherited from Kirby\Toolkit\Collection