MediaWiki  master
PageContentLanguageHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Content\Hook;
4 
5 use Language;
6 use Title;
7 
29  public function onPageContentLanguage( $title, &$pageLang, $userLang );
30 }
Internationalisation code See https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation for more...
Definition: Language.php:45
Represents a title within MediaWiki.
Definition: Title.php:49
This is a hook handler interface, see docs/Hooks.md.
onPageContentLanguage( $title, &$pageLang, $userLang)
Use this hook to change the language in which the content of a page is written.