Kartographer
Extension that adds maps to wiki pages
Loading...
Searching...
No Matches
Kartographer\Hooks Class Reference

@license MIT More...

+ Inheritance diagram for Kartographer\Hooks:
+ Collaboration diagram for Kartographer\Hooks:

Public Member Functions

 __construct (Config $config, LanguageNameUtils $languageCodeValidator, TitleFormatter $titleFormatter)
 
 onParserFirstCallInit ( $parser)
 ParserFirstCallInit hook handler.
 
 onParserAfterParse ( $parser, &$text, $stripState)
 ParserAfterParse hook handler.
 

Static Public Member Functions

static onRegistration ()
 Sets $wgKartographerMapServer in integration test/CI setup This is needed by parserTests that define articles containing Kartographer content - parsing them when inserting them in the test DB requires $wgKartographerMapServer to be defined early.
 

Detailed Description

@license MIT

Member Function Documentation

◆ onParserAfterParse()

Kartographer\Hooks::onParserAfterParse ( $parser,
& $text,
$stripState )

ParserAfterParse hook handler.

See also
https://www.mediawiki.org/wiki/Manual:Hooks/ParserAfterParse
Parameters
Parser$parser
string&$textText being parsed
StripState$stripStateStripState used

◆ onParserFirstCallInit()

Kartographer\Hooks::onParserFirstCallInit ( $parser)

ParserFirstCallInit hook handler.

See also
https://www.mediawiki.org/wiki/Manual:Hooks/ParserFirstCallInit
Parameters
Parser$parser

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