Reference

Guide

new Languages()

Creates a new collection with the given language objects

new Languages(array $objects = [ ], null $parent = null)

Parameters

Name Type Default Description
$objects array [ ]
$parent null null

Exceptions

Type Description
Kirby\Exception\DuplicateException

Source code

kirby/src/Cms/Languages.php#L26