MediaWiki
REL1_35
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
12
interface
PageContentLanguageHook
{
26
public
function
onPageContentLanguage
(
$title
, &$pageLang, $userLang );
27
}
Language
Internationalisation code See https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation for more...
Definition
Language.php:41
Title
Represents a title within MediaWiki.
Definition
Title.php:42
MediaWiki\Content\Hook\PageContentLanguageHook
Stable to implement.
Definition
PageContentLanguageHook.php:12
MediaWiki\Content\Hook\PageContentLanguageHook\onPageContentLanguage
onPageContentLanguage( $title, &$pageLang, $userLang)
Use this hook to change the language in which the content of a page is written.
MediaWiki\Content\Hook
Definition
ContentAlterParserOutputHook.php:3
$title
$title
Definition
testCompression.php:38
includes
content
Hook
PageContentLanguageHook.php
Generated on Sat Apr 6 2024 00:07:02 for MediaWiki by
1.9.8