Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace MediaWiki\Hook;
4
5use Article;
6use MediaWiki\Actions\ActionEntryPoint;
7use MediaWiki\Output\OutputPage;
8use MediaWiki\Request\WebRequest;
9use MediaWiki\Title\Title;
10use MediaWiki\User\User;
11
12/**
13 * This is a hook handler interface, see docs/Hooks.md.
14 * Use the hook name "MediaWikiPerformAction" to register handlers implementing this interface.
15 *
16 * @stable to implement
17 * @ingroup Hooks
18 */
19interface MediaWikiPerformActionHook {
20    /**
21     * Use this hook to override ActionEntryPoint::performAction(). Use this to do
22     * something completely different, after the basic globals have been set up, but
23     * before ordinary actions take place.
24     *
25     * @since 1.35
26     *
27     * @param OutputPage $output Context output
28     * @param Article $article Article on which the action will be performed
29     * @param Title $title Title on which the action will be performed
30     * @param User $user Context user
31     * @param WebRequest $request Context request
32     * @param ActionEntryPoint $mediaWiki (Changed from MediaWiki in 1.42)
33     * @return bool|void True or no return value to continue or false to abort
34     */
35    public function onMediaWikiPerformAction( $output, $article, $title, $user,
36        $request, $mediaWiki
37    );
38}