Debian Codegraph @

includes/specials/Hook/PostLoginRedirectHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Hook;
4
5 /**
6 * This is a hook handler interface, see docs/Hooks.md.
7 * Use the hook name "PostLoginRedirect" to register handlers implementing this interface.
8 *
9 * @stable to implement
10 * @ingroup Hooks
11 */
12 interface PostLoginRedirectHook {
13 /**
14 * Use this hook to modify the post login redirect behavior.
15 *
16 * Occurs after signing up or logging in, allows for interception of redirect.
17 *
18 * @since 1.35
19 *
20 * @param string &$returnTo The page name to return to, as a string
21 * @param string[] &$returnToQuery Array of url parameters, mapping parameter names to values
22 * @param string &$type Type of login redirect as string:
23 * - error: display a return to link ignoring $wgRedirectOnLogin
24 * - signup: display a return to link using $wgRedirectOnLogin if needed
25 * - success: display a return to link using $wgRedirectOnLogin if needed
26 * - successredirect: send an HTTP redirect using $wgRedirectOnLogin if needed
27 * @return bool|void True or no return value to continue or false to abort
28 */
29 public function onPostLoginRedirect( &$returnTo, &$returnToQuery, &$type );
30 }