< Manual:Hooks
| ImagePageShowTOC | |
|---|---|
| Available from version 1.16.0 Called when fetching the file associed with an image page. | |
| Define function: | public static function onImagePageShowTOC( $page, &$toc ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"ImagePageShowTOC": "MyExtensionHooks::onImagePageShowTOC"
}
}
|
| Called from: | File(s): page/ImagePage.php |
| Interface: | ImagePageShowTOCHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ImagePageShowTOC extensions.
Details
- $page: ImagePage object
- &$toc: Array of <li> strings
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.