3 namespace MediaWiki\Content\Hook
;
5 use MediaWiki\Language\Language
;
6 use MediaWiki\Title\Title
;
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "PageContentLanguage" to register handlers implementing this interface.
12 * @stable to implement
15 interface PageContentLanguageHook
{
17 * Use this hook to change the language in which the content of a page is written.
18 * Defaults to the wiki content language.
23 * @param Language &$pageLang Page content language
24 * @param mixed $userLang Unused (always null), T299369
25 * @return bool|void True or no return value to continue or false to abort
27 public function onPageContentLanguage( $title, &$pageLang, $userLang );