new Languages()
Creates a new collection with the given language objects
new Languages(array $objects = [], null $parent = null)
Parameters
| Name | Type | Default |
|---|---|---|
| $objects | array<Kirby\Cms\Language> |
[]
|
| $parent | null |
null
|
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\DuplicateException |
If more than one language is the default |