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 MediaWiki\Session\Session;
6use MediaWiki\User\UserIdentity;
7
8/**
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "TempUserCreatedRedirect" to register handlers implementing this interface.
11 *
12 * @stable to implement
13 * @ingroup Hooks
14 */
15interface TempUserCreatedRedirectHook {
16    /**
17     * This hook is called after an action causes a temporary user to be
18     * created. The handler may modify the redirect URL.
19     *
20     * @since 1.39
21     *
22     * @param Session $session
23     * @param UserIdentity $user
24     * @param string $returnTo The prefixed DB key of the title to redirect to
25     * @param string $returnToQuery An extra query part
26     * @param string $returnToAnchor Either an empty string or a fragment beginning with "#"
27     * @param string &$redirectUrl The URL to redirect to
28     * @return bool|null
29     */
30    public function onTempUserCreatedRedirect(
31        Session $session,
32        UserIdentity $user,
33        string $returnTo,
34        string $returnToQuery,
35        string $returnToAnchor,
36        &$redirectUrl
37    );
38}