Manual:Hooks/BeforeParserMakeImageLinkObj

From mediawiki.org
Jump to navigation Jump to search
BeforeParserMakeImageLinkObj
Available from version 1.10.1
Removed in version 1.18.0
Allows an extension to select a different version of an image to link to?
Define function:
public static function onBeforeParserMakeImageLinkObj( Parser $parser, $title, $skip, $time ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"BeforeParserMakeImageLinkObj": "MyExtensionHooks::onBeforeParserMakeImageLinkObj"
	}
}
Called from: File(s): parser/Parser.php
Interface: BeforeParserMakeImageLinkObjHook.php

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