|
MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...

Public Member Functions | |
| onPageContentLanguage ( $title, &$pageLang, $userLang) | |
| Use this hook to change the language in which the content of a page is written. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "PageContentLanguage" to register handlers implementing this interface.
Definition at line 15 of file PageContentLanguageHook.php.
| MediaWiki\Content\Hook\PageContentLanguageHook::onPageContentLanguage | ( | $title, | |
| & | $pageLang, | ||
| $userLang ) |
Use this hook to change the language in which the content of a page is written.
Defaults to the wiki content language.
| Title | $title | |
| Language | string | &$pageLang | Page content language. Input can be anything (under control of hook subscribers), but hooks should return Language objects. Language code strings are deprecated. |
| Language | $userLang | User language |
Implemented in MediaWiki\HookContainer\HookRunner.