MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onBeforePageRedirect ( $out, &$redirect, &$code) | |
This hook is called prior to sending an HTTP redirect. | |
Stable to implement.
Definition at line 11 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 |
int | &$code | HTTP code (eg '301' or '302'), modifiable |
Implemented in MediaWiki\HookContainer\HookRunner.