< Manual:Hooks
SkinPreloadExistence
Available from version 1.24.0
modify the CSS class of an array of page links
Define function:
public static function onSkinPreloadExistence( array &$titles, Skin $skin ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"SkinPreloadExistence": "MyExtensionHooks::onSkinPreloadExistence"
	}
}
Called from: File(s): Skin.php
Interface: SkinPreloadExistenceHook.php

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

Supply titles that should be added to link existence cache before the page is rendered.

Details

  • &$titles: Array of Title objects
  • $skin: Skin object
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.