1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
<?php
namespace MediaWiki\Hook;
use Article;
use MediaWiki\Actions\ActionEntryPoint;
use MediaWiki\Output\OutputPage;
use MediaWiki\Request\WebRequest;
use MediaWiki\Title\Title;
use MediaWiki\User\User;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "MediaWikiPerformAction" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface MediaWikiPerformActionHook {
/**
* 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
*
* @param OutputPage $output Context output
* @param Article $article Article on which the action will be performed
* @param Title $title Title on which the action will be performed
* @param User $user Context user
* @param WebRequest $request Context request
* @param ActionEntryPoint $mediaWiki (Changed from MediaWiki in 1.42)
* @return bool|void True or no return value to continue or false to abort
*/
public function onMediaWikiPerformAction( $output, $article, $title, $user,
$request, $mediaWiki
);
}
|