MediaWiki master
MediaWiki\Permissions\Hook\TitleQuickPermissionsHook Interface Reference

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

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onTitleQuickPermissions ( $title, $user, $action, &$errors, $doExpensiveQueries, $short)
 This hook is called from Title::checkQuickPermissions to add to or override the quick permissions check.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 15 of file TitleQuickPermissionsHook.php.

Member Function Documentation

◆ onTitleQuickPermissions()

MediaWiki\Permissions\Hook\TitleQuickPermissionsHook::onTitleQuickPermissions ( $title,
$user,
$action,
& $errors,
$doExpensiveQueries,
$short )

This hook is called from Title::checkQuickPermissions to add to or override the quick permissions check.

Since
1.35
Parameters
Title$titleTitle being accessed
User$userUser performing the action
string$actionAction being performed
array&$errorsArray of errors
bool$doExpensiveQueriesWhether to do expensive database queries
bool$shortWhether to return immediately on first error
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: