MediaWiki master
MediaWiki\Actions\Hook\GetActionNameHook Interface Reference

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onGetActionName (IContextSource $context, string &$action)
 Use this hook to override the action name depending on request parameters.
 

Detailed Description

Stability: stable
to implement

Definition at line 11 of file GetActionNameHook.php.

Member Function Documentation

◆ onGetActionName()

MediaWiki\Actions\Hook\GetActionNameHook::onGetActionName ( IContextSource $context,
string & $action )

Use this hook to override the action name depending on request parameters.

Since
1.37
Parameters
IContextSource$contextRequest context
string&$actionDefault action name, reassign to change it
Returns
void This hook must not abort, it must return no value

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: