$roles->remove()
Removes an object
$roles->remove(string|Role $key): Roles
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $keyrequired | stringorKirby\Cms\Role |
no default value | Key or object to remove |
Return type
This method modifies the existing $roles object it is applied to and returns it again.
Parent class
Kirby\Cms\Roles
inherited from Kirby\Cms\Collection