< Manual:Hooks
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": "MyExtensionHooks::onGetMagicVariableIDs"
}
}
|
Called from: | File(s): MagicWordFactory.php |
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
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.