< Manual:Hooks 
 
      | ApiDeprecationHelp | |
|---|---|
| Available from version 1.29.0 (Gerrit change 331419) Add messages to the 'deprecation-help' warning generated from ApiBase::addDeprecation(). | |
| Define function: | public static function onApiDeprecationHelp( &$msgs ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"ApiDeprecationHelp": "MyExtensionHooks::onApiDeprecationHelp"
	}
}
 | 
| Called from: | File(s): api/ApiBase.php Function(s): addDeprecation | 
| Interface: | ApiDeprecationHelpHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ApiDeprecationHelp extensions.
Details
- &$msgs: Message[] Messages to include in the help. Multiple messages will be joined with spaces.
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.