Manual:Hooks/ExtensionTypes/pl
ExtensionTypes | |
---|---|
Dostępne od wersji version 1.17.0 Called when generating the extensions credits, use this to change the table's headers. | |
Zdefiniuj funkcję: | public static function onExtensionTypes( array &$extTypes ) { ... }
|
Dołącz hak: | W extension.json:
{
"Hooks": {
"ExtensionTypes": "MediaWiki\\Extension\\MyExtension\\Hooks::onExtensionTypes"
}
}
|
Called from: | Plik(i): specials/SpecialVersion.php |
Interface: | ExtensionTypesHook.php |
For more information about attaching hooks, see Podręcznik:Haki .
For examples of extensions using this hook, see Category:ExtensionTypes extensions/pl.
Szczegóły
- &$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)