MediaWiki master
MediaWiki\Content\Hook\PageContentLanguageHook Interface Reference

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

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onPageContentLanguage ( $title, &$pageLang, $userLang)
 Use this hook to change the language in which the content of a page is written.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "PageContentLanguage" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 15 of file PageContentLanguageHook.php.

Member Function Documentation

◆ onPageContentLanguage()

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.

Since
1.35
Parameters
Title$title
Language&$pageLangPage content language
mixed$userLangUnused (always null), T299369
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: