MediaWiki master
|
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. | |
This is a hook handler interface, see docs/Hooks.md Use the hook name "PermissionErrorAudit" to register handlers implementing this interface.
Definition at line 14 of file PermissionErrorAuditHook.php.
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.
LinkTarget | $title | Page in question |
UserIdentity | $user | User to check |
string | $action | Action being checked |
string | $rigor | One of PermissionManager::RIGOR_ constants |
array[] | $errors | Array of arrays of the arguments to wfMessage to explain permissions problems. |
Implemented in MediaWiki\HookContainer\HookRunner.