wiki.techinc.nl/includes/content
Niklas Laxström a08fc9eed6 Improve documentation of the PageContentLanguage hook
Clarify that the type of second parameter that is being passed
to the hooks can be anything because one hook can change it and
then it is passed to another hook without the hook caller having
possibility to check or modify the value.

Clarify that hooks should only return Language objects.

Rename $wgLang to $userLang in the hook parameter documentation to
avoid false posivite matches for the global.

Fix some typos, use Title::inNamespace and add a test assertion.

Also, the $content parameter is unused by all implementations of
this method, and on quick look never passed by any caller. I kept
it for now, however.

Bug: T214358
Change-Id: Iae49d2998c2b762565d232c0337d84d43a4a900c
2019-03-12 08:05:59 +01:00
..
AbstractContent.php Deprecate Content::getNativeData, add TextContent::getText 2019-01-16 11:57:50 -08:00
CodeContentHandler.php Fix PhanTypeMismatchDeclaredParam 2018-07-07 00:34:30 +00:00
Content.php Deprecate Content::getNativeData, add TextContent::getText 2019-01-16 11:57:50 -08:00
ContentHandler.php Improve documentation of the PageContentLanguage hook 2019-03-12 08:05:59 +01:00
CssContent.php Deprecate Content::getNativeData, add TextContent::getText 2019-01-16 11:57:50 -08:00
CssContentHandler.php
FileContentHandler.php
JavaScriptContent.php Deprecate Content::getNativeData, add TextContent::getText 2019-01-16 11:57:50 -08:00
JavaScriptContentHandler.php
JsonContent.php Drop JsonContent->getJsonData(), deprecated in 1.25 and unused 2019-02-09 07:50:28 +00:00
JsonContentHandler.php
MessageContent.php Deprecate Content::getNativeData, add TextContent::getText 2019-01-16 11:57:50 -08:00
TextContent.php Deprecate Content::getNativeData, add TextContent::getText 2019-01-16 11:57:50 -08:00
TextContentHandler.php Deprecate Content::getNativeData, add TextContent::getText 2019-01-16 11:57:50 -08:00
WikitextContent.php Deprecate Content::getNativeData, add TextContent::getText 2019-01-16 11:57:50 -08:00
WikitextContentHandler.php Deprecate Content::getNativeData, add TextContent::getText 2019-01-16 11:57:50 -08:00
WikiTextStructure.php WikiTextStructure: Add an exclusion from WikibaseMediaInfo 2019-01-17 10:31:55 -08:00