MediaWiki master
MediaWiki\Hook\ParserTestGlobalsHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onParserTestGlobals (&$globals)
 Use this hook to define globals for parser tests.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "ParserTestGlobals" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 12 of file ParserTestGlobalsHook.php.

Member Function Documentation

◆ onParserTestGlobals()

MediaWiki\Hook\ParserTestGlobalsHook::onParserTestGlobals ( & $globals)

Use this hook to define globals for parser tests.

Since
1.35
Parameters
array&$globalsArray with all the globals which should be set for parser tests. The arrays keys serve as the globals' names, its values are the globals' values.
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant