MediaWiki REL1_35
MediaWiki\User\Hook\UserRequiresHTTPSHook Interface Reference
Inheritance diagram for MediaWiki\User\Hook\UserRequiresHTTPSHook:

Public Member Functions

 onUserRequiresHTTPS ( $user, &$https)
 This hook is called to determine whether a user needs to be switched to HTTPS.
 

Detailed Description

Deprecated:
since 1.35

Definition at line 11 of file UserRequiresHTTPSHook.php.

Member Function Documentation

◆ onUserRequiresHTTPS()

MediaWiki\User\Hook\UserRequiresHTTPSHook::onUserRequiresHTTPS (   $user,
$https 
)

This hook is called to determine whether a user needs to be switched to HTTPS.

Deprecated since 1.35 as part of a drive towards deprecation of mixed-protocol wikis.

Since
1.35
Parameters
User$userUser in question.
bool&$httpsBoolean whether $user should be switched to HTTPS.
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


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