Jump to content

Manual:Hooks/SkinTemplateSetupPageCss

From mediawiki.org
SkinTemplateSetupPageCss
Available from version 1.6.0
Removed in version 1.19.0
Sets up the CSS for a skin
Define function:
public static function onSkinTemplateSetupPageCss( &$out ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"SkinTemplateSetupPageCss": "MediaWiki\\Extension\\MyExtension\\Hooks::onSkinTemplateSetupPageCss"
	}
}
Called from: File(s): SkinTemplate.php
Interface: SkinTemplateSetupPageCssHook.php

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


Usage

[edit]

Hook functions add to the skin's CSS by generating CSS and appending it to $out. They should always return true to avoid interfering with other functions attached to this hook.