Manual:Hooks/ImagePageAfterImageLinks
Appearance
ImagePageAfterImageLinks | |
---|---|
Available from version 1.16.0 Called after the image links section on an image page is built. | |
Define function: | public static function onImagePageAfterImageLinks( $imagePage, &$html ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"ImagePageAfterImageLinks": "MediaWiki\\Extension\\MyExtension\\Hooks::onImagePageAfterImageLinks"
}
}
|
Called from: | File(s): page/ImagePage.php |
Interface: | ImagePageAfterImageLinksHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ImagePageAfterImageLinks extensions.
Details
[edit]- $imagePage: ImagePage object ($this)
- &$html: HTML for the hook to add