new Users()
Creates a new Collection with the given objects
new Users(iterable $objects = [], object|null $parent = null, string|null $root = null, array $inject = [])
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $objects | iterable<Kirby\Cms\User> |
[]
|
|
| $parent | objectornull |
null
|
|
| $root | stringornull |
null
|
Directory to dynamically load user objects from during hydration |
| $inject | array |
[]
|
Props to inject into hydrated user objects |