Skip to content

Kirby 3.6.6

new Language()

Creates a new language object

new Language(array $props)

Parameters

Name Type Default
$props * array

For the $props parameter, you pass an array with the following data, which will be used to set up the Kirby\Cms\Language object:

Name Type
code * string
default bool
direction string
locale string|array
name string
slugs array
smartypants array
translations array
url string

Parent class

Kirby\Cms\Language