MediaWiki  master
MediaWiki\Hook\AfterParserFetchFileAndTitleHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. 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

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "AfterParserFetchFileAndTitle" to register handlers implementing this interface.

Stable to implement

Definition at line 15 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: