Manual:Hooks/ImagePageFileHistoryLine

Category:MediaWiki hooks#ImagePageFileHistoryLine Category:Hooks added in MediaWiki 1.13.0#ImagePageFileHistoryLine
ImagePageFileHistoryLine
Available from version 1.13.0
Called when a file history line is constructed.
Define function:
public static function onImagePageFileHistoryLine( $imagepage, $file, $line, $css ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ImagePageFileHistoryLine": "MediaWiki\\Extension\\MyExtension\\Hooks::onImagePageFileHistoryLine"
	}
}
Called from: File(s): page/ImagePage.phpCategory:MediaWiki hooks included in ImagePage.php#ImagePageFileHistoryLine
Interface: ImagePageFileHistoryLineHook.php

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

Details

  • $imagepage: an instance of ImagePage object
  • $file: the file
  • $line: the HTML of the history line
  • $css: the line CSS class
Category:Hooks added in MediaWiki 1.13.0 Category:MediaWiki hooks Category:MediaWiki hooks included in ImagePage.php