MediaWiki master
MediaWiki\Permissions\Hook\PermissionErrorAuditHook Interface Reference

This is a hook handler interface, see docs/Hooks.md Use the hook name "PermissionErrorAudit" to register handlers implementing this interface. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onPermissionErrorAudit (LinkTarget $title, UserIdentity $user, string $action, string $rigor, array $errors)
 This hook is called from PermissionManager::getPermissionErrorsInternal() to collect internal permission errors and make them available to consumers.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md Use the hook name "PermissionErrorAudit" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 14 of file PermissionErrorAuditHook.php.

Member Function Documentation

◆ onPermissionErrorAudit()

MediaWiki\Permissions\Hook\PermissionErrorAuditHook::onPermissionErrorAudit ( LinkTarget $title,
UserIdentity $user,
string $action,
string $rigor,
array $errors )

This hook is called from PermissionManager::getPermissionErrorsInternal() to collect internal permission errors and make them available to consumers.

Parameters
LinkTarget$titlePage in question
UserIdentity$userUser to check
string$actionAction being checked
string$rigorOne of PermissionManager::RIGOR_ constants
array[]$errorsArray of arrays of the arguments to wfMessage to explain permissions problems.
Returns
void This hook must not abort, it must return no value
Since
1.39

Implemented in MediaWiki\HookContainer\HookRunner.


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