Manual:Hooks/SkinPreloadExistence
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": "MediaWiki\\Extension\\MyExtension\\Hooks::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
edit- &$titles: Array of Title objects
- $skin: Skin object