Jump to navigation Jump to search
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"

For MediaWiki ≤1.25:

$wgHooks['SkinPreloadExistence'][] = 'MyExtensionHooks::onSkinPreloadExistence';
Called from:File(s): Skin.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.


  • &$titles: Array of Title objects
  • $skin: Skin object