$users->add()
Adds a single user or an entire second collection to the current collection
Parameters
Name | Type | Default |
---|---|---|
$object * | Kirby\Cms\Users |Kirby\Cms\User |string |
– |
Return type
This method does not modify the existing $users
object but returns a new object with the changes applied. Learn more →
Exceptions
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |
When no User or Users object or an ID of an existing user is passed |