page.changeTitle:before $page, $title, $languageCode /site/config/config.php return [ 'hooks' => [ 'page.changeTitle:before' => function ($page, $title, $languageCode) { // your code goes here } ] ]