Jump to content

手册:钩子/ExtensionTypes

From mediawiki.org
This page is a translated version of the page Manual:Hooks/ExtensionTypes and the translation is 50% complete.
ExtensionTypes
version 1.17.0 版可用
Called when generating the extensions credits, use this to change the table's headers.
定义函数:
public static function onExtensionTypes( array &$extTypes ) { ... }
附加钩子: extension.json中:
{
	"Hooks": {
		"ExtensionTypes": "MediaWiki\\Extension\\MyExtension\\Hooks::onExtensionTypes"
	}
}
调用自: 文件: specials/SpecialVersion.php
介面: ExtensionTypesHook.php

更多有关附加钩子的信息,请参见Manual:Hooks
有关使用此钩子的扩展示例,请参见Category:ExtensionTypes extensions/zh


详情

  • &$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)