< Manual:Hooks 
 
      | BeforeParserFetchFileAndTitle | |
|---|---|
| Available from version 1.18.0 (r84659, codereview) Before an image is rendered by Parser. | |
| Define function: | public static function onBeforeParserFetchFileAndTitle( Parser $parser, $nt, array &$options, string &$descQuery ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"BeforeParserFetchFileAndTitle": "MyExtensionHooks::onBeforeParserFetchFileAndTitle"
	}
}
 | 
| Called from: | File(s): parser/Parser.php | 
| Interface: | BeforeParserFetchFileAndTitleHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:BeforeParserFetchFileAndTitle extensions.
Details
- $parser: Parser object
- $nt: the image title
- &$options: array of options to use to Parser::fetchFileAndTitle
- &$descQuery: query string to add to thumbnail URL
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.