MediaWiki REL1_35
MediaWiki\Permissions\Hook\TitleReadWhitelistHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Permissions\Hook\TitleReadWhitelistHook:

Public Member Functions

 onTitleReadWhitelist ( $title, $user, &$whitelisted)
 This hook is called at the end of read permissions checks, just before adding the default error message if nothing allows the user to read the page.
 

Detailed Description

Stable to implement.

Definition at line 12 of file TitleReadWhitelistHook.php.

Member Function Documentation

◆ onTitleReadWhitelist()

MediaWiki\Permissions\Hook\TitleReadWhitelistHook::onTitleReadWhitelist (   $title,
  $user,
$whitelisted 
)

This hook is called at the end of read permissions checks, just before adding the default error message if nothing allows the user to read the page.

Since
1.35
Parameters
Title$titleTitle being checked against
User$userCurrent user
bool&$whitelistedWhether this title is whitelisted
Returns
bool|void True or no return value to continue, or false to not whitelist the title

Implemented in MediaWiki\HookContainer\HookRunner.


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