MediaWiki REL1_35
MediaWiki\Permissions\Hook\TitleQuickPermissionsHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Permissions\Hook\TitleQuickPermissionsHook:

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

Stable to implement.

Definition at line 12 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: