MediaWiki  master
MediaWiki\Hook\BeforeHttpsRedirectHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\BeforeHttpsRedirectHook:

Public Member Functions

 onBeforeHttpsRedirect ( $context, &$redirect)
 This hook is called prior to forcing HTTP->HTTPS redirect. More...
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "BeforeHttpsRedirect" to register handlers implementing this interface.

Deprecated:
since 1.35

Definition at line 14 of file BeforeHttpsRedirectHook.php.

Member Function Documentation

◆ onBeforeHttpsRedirect()

MediaWiki\Hook\BeforeHttpsRedirectHook::onBeforeHttpsRedirect (   $context,
$redirect 
)

This hook is called prior to forcing HTTP->HTTPS redirect.

Use this hook to override how the redirect is output. ATTENTION: This hook is likely to be removed soon due to overall design of the system.

Since
1.35
Parameters
IContextSource$context
string&$redirectstring URL, modifiable
Returns
bool|void True or no return value to continue, or false to let standard HTTP rendering take place

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: