Manual:Hooks/GetMagicVariableIDs

Category:MediaWiki hooks#GetMagicVariableIDs Category:Hooks added in MediaWiki 1.35.0#GetMagicVariableIDs
GetMagicVariableIDs
Available from version 1.35.0 (Gerrit change 604435)
Use this hook to modify the list of magic variables
Define function:
public static function onGetMagicVariableIDs( &$variableIDs ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"GetMagicVariableIDs": "MediaWiki\\Extension\\MyExtension\\Hooks::onGetMagicVariableIDs"
	}
}
Called from: File(s): MagicWordFactory.phpCategory:MediaWiki hooks included in MagicWordFactory.php#GetMagicVariableIDs
Interface: GetMagicVariableIDsHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:GetMagicVariableIDs extensions.

Details

  • &$variableIDs: Array of magic word identifiers
Category:Hooks added in MediaWiki 1.35.0 Category:MediaWiki hooks Category:MediaWiki hooks included in MagicWordFactory.php