Debian Codegraph @

includes/content/Hook/PageContentLanguageHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Content\Hook;
4
5 use MediaWiki\Language\Language;
6 use MediaWiki\Title\Title;
7
8 /**
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "PageContentLanguage" to register handlers implementing this interface.
11 *
12 * @stable to implement
13 * @ingroup Hooks
14 */
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.
19 *
20 * @since 1.35
21 *
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
26 */
27 public function onPageContentLanguage( $title, &$pageLang, $userLang );
28 }