Skip to content

Kirby 4.5.0

language.create:before

/site/config/config.php
return [
    'hooks' => [
        'language.create:before' => function (array $input, Kirby\Cms\Language $language) {
            // your code goes here
        }
    ]
]

Parameters

Parameter Type
$input array
$language Kirby\Cms\Language