Skip to content

Kirby 5.0.2

$users->remove()

Removes an object

$users->remove(string|Kirby\Cms\User $key): Kirby\Cms\Users

Parameters

Name Type Default Description
$keyrequired stringorKirby\Cms\User no default value the name of the key

Return type

Kirby\Cms\Users

This method does not modify the existing $users object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\Users inherited from Kirby\Cms\Collection