< Manual:Hooks
SkinGetPoweredBy
Available from version 1.17.0
Called when generating the code used to display the "Powered by MediaWiki" icon.
Define function:
public static function onSkinGetPoweredBy( &$text, $skin ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"SkinGetPoweredBy": "MyExtensionHooks::onSkinGetPoweredBy"
	}
}
Called from: File(s): Skin.php
Interface: SkinGetPoweredByHook.php

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

Details

  • &$text: additional 'powered by' icons in HTML.
  • $skin: Skin object

Note: Modern skin does not use the MediaWiki icon but plain text instead

This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.