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

Public Member Functions | |
| onBeforePageRedirect ( $out, &$redirect, &$code) | |
| This hook is called prior to sending an HTTP redirect. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "BeforePageRedirect" to register handlers implementing this interface.
Definition at line 14 of file BeforePageRedirectHook.php.
| MediaWiki\Hook\BeforePageRedirectHook::onBeforePageRedirect | ( | $out, | |
| & | $redirect, | ||
| & | $code ) |
This hook is called prior to sending an HTTP redirect.
Gives a chance to override how the redirect is output by modifying, or by returning false and taking over the output.
| OutputPage | $out | |
| string | &$redirect | URL, modifiable |
| string | &$code | HTTP code (eg '301' or '302'), modifiable |
Implemented in MediaWiki\HookContainer\HookRunner.