Manual:Hooks/SkinPreloadExistence
From Linux Web Expert
SkinPreloadExistence | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate> modify the CSS class of an array of page links | |
<translate> Define function:</translate> | public static function onSkinPreloadExistence( array &$titles, Skin $skin ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"SkinPreloadExistence": "MediaWiki\\Extension\\MyExtension\\Hooks::onSkinPreloadExistence"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> Skin.php |
<translate> Interface:</translate> | SkinPreloadExistenceHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:SkinPreloadExistence extensions</tvar>.</translate>
Supply titles that should be added to link existence cache before the page is rendered.
Details
- &$titles: Array of Title objects
- $skin: Skin object