Manual:Hooks/PageContentLanguage
From MediaWiki.org
| PageContentLanguage | |
|---|---|
| Available from version 1.18.0 (r90742) Allows changing the page content language and the direction depending on that language. |
|
Define function: |
public static function onPageContentLanguage( Title $title, Language &$pageLanguage, $language ) { ... }
|
Attach hook: |
$wgHooks['PageContentLanguage'][] = 'MyExtensionHooks::onPageContentLanguage'; |
| Called from: | Title.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:PageContentLanguage extensions.
[edit] Details
- $title: the Title object
- &$pageLang: Language object. The page content language
- $language: Language or StubUserLang object. The user interface language
[edit] See also
| Language: | English • Bahasa Indonesia • 日本語 |
|---|