< Manual:Hooks
| GetActionName | |
|---|---|
| Available from version 1.37.0 (Gerrit change 708537) Use this hook to override the action name depending on request parameters. | |
| Define function: | public static function onGetActionName( IContextSource $context, string &$action ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"GetActionName": "MyExtensionHooks::onGetActionName"
}
}
|
| Called from: | File(s): actions/ActionFactory.php Function(s): getActionName |
| Interface: | GetActionNameHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:GetActionName extensions.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.