MediaWiki  master
MediaWiki\Hook\AfterParserFetchFileAndTitleHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\AfterParserFetchFileAndTitleHook:

Public Member Functions

 onAfterParserFetchFileAndTitle ( $parser, $ig, &$html)
 This hook is called after an image gallery is formed by Parser, just before adding its HTML to parser output. More...
 

Detailed Description

Stable to implement.

Definition at line 12 of file AfterParserFetchFileAndTitleHook.php.

Member Function Documentation

◆ onAfterParserFetchFileAndTitle()

MediaWiki\Hook\AfterParserFetchFileAndTitleHook::onAfterParserFetchFileAndTitle (   $parser,
  $ig,
$html 
)

This hook is called after an image gallery is formed by Parser, just before adding its HTML to parser output.

Since
1.35
Parameters
Parser$parserParser that called the hook
ImageGalleryBase$igGallery, an object of one of the gallery classes (inheriting from ImageGalleryBase)
string&$htmlHTML generated by the gallery
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: