MediaWiki master
MediaWiki\Hook\MediaWikiPerformActionHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onMediaWikiPerformAction ( $output, $article, $title, $user, $request, $mediaWiki)
 Use this hook to override ActionEntryPoint::performAction().
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "MediaWikiPerformAction" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 19 of file MediaWikiPerformActionHook.php.

Member Function Documentation

◆ onMediaWikiPerformAction()

MediaWiki\Hook\MediaWikiPerformActionHook::onMediaWikiPerformAction ( $output,
$article,
$title,
$user,
$request,
$mediaWiki )

Use this hook to override ActionEntryPoint::performAction().

Use this to do something completely different, after the basic globals have been set up, but before ordinary actions take place.

Since
1.35
Parameters
OutputPage$outputContext output
Article$articleArticle on which the action will be performed
Title$titleTitle on which the action will be performed
User$userContext user
WebRequest$requestContext request
ActionEntryPoint$mediaWiki(Changed from MediaWiki in 1.42)
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


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