Skip to content

Kirby 4.5.0

language.update:after

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

Parameters

Parameter Type
$newLanguage Kirby\Cms\Language
$oldLanguage Kirby\Cms\Language
$input array