< Manual:Hooks 
 
      |  | This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility. This feature was deprecated in version 1.35.0. | 
| BeforeParserrenderImageGallery | |
|---|---|
| Available from version 1.10.1 Allows an extension to modify an image gallery before it is rendered. | |
| Define function: | public static function onBeforeParserrenderImageGallery( Parser $parser, $imageGallery ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"BeforeParserrenderImageGallery": "MyExtensionHooks::onBeforeParserrenderImageGallery"
	}
}
 | 
| Called from: | File(s): parser/Parser.php | 
| Interface: | BeforeParserrenderImageGalleryHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:BeforeParserrenderImageGallery extensions.
Details
- $parser - The parser object
- $imageGallery - The gallery that is about to be rendered
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.