Localisation updates from https://translatewiki.net.
[mediawiki.git] / includes / content / Hook / PageContentLanguageHook.php
blobe1e245ea11dbbd56ace1d52e527672d9148be708
1 <?php
3 namespace MediaWiki\Content\Hook;
5 use MediaWiki\Language\Language;
6 use MediaWiki\Title\Title;
8 /**
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
13 * @ingroup Hooks
15 interface PageContentLanguageHook {
16 /**
17 * Use this hook to change the language in which the content of a page is written.
18 * Defaults to the wiki content language.
20 * @since 1.35
22 * @param Title $title
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 );