Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace MediaWiki\Content\Hook;
4
5use Language;
6use 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 */
15interface 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}