MediaWiki REL1_35
MediaWiki\Page\Hook\ImagePageShowTOCHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Page\Hook\ImagePageShowTOCHook:

Public Member Functions

 onImagePageShowTOC ( $page, &$toc)
 This hook is called when the file toc on an image page is generated.
 

Detailed Description

Stable to implement.

Definition at line 11 of file ImagePageShowTOCHook.php.

Member Function Documentation

◆ onImagePageShowTOC()

MediaWiki\Page\Hook\ImagePageShowTOCHook::onImagePageShowTOC (   $page,
$toc 
)

This hook is called when the file toc on an image page is generated.

Since
1.35
Parameters
ImagePage$page
string[]&$tocArray of <li> strings
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: