Handbuch:Hooks/ExtensionTypes
Appearance
ExtensionTypes | |
---|---|
Erhältlich ab Version 1.17.0 Called when generating the extensions credits, use this to change the table's headers. | |
Funktion definieren: | public static function onExtensionTypes( array &$extTypes ) { ... }
|
Haken anbringen: | In extension.json:
{
"Hooks": {
"ExtensionTypes": "MediaWiki\\Extension\\MyExtension\\Hooks::onExtensionTypes"
}
}
|
Angerufen von: | Datei(en): specials/SpecialVersion.php |
Interface: | ExtensionTypesHook.php |
For more information about attaching hooks, see Handbuch:Hooks .
For examples of extensions using this hook, see Category:ExtensionTypes extensions/de.
Details
- &$extTypes - associative array of extensions types, the keys are the strings you use as key in $wgExtensionCredits, the values are the messages as displayed on Special:Version (ie something coming from wfMessage)