MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
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\Output\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 | Absolute or path-relative URL, modifiable |
string | &$code | HTTP code (eg '301' or '302'), modifiable |
Implemented in MediaWiki\HookContainer\HookRunner.