MediaWiki master
UserCanHook.php
Go to the documentation of this file.
1<?php
2
4
7
15interface UserCanHook {
29 public function onUserCan( $title, $user, $action, &$result );
30}
Represents a title within MediaWiki.
Definition Title.php:78
internal since 1.36
Definition User.php:93
This is a hook handler interface, see docs/Hooks.md.
onUserCan( $title, $user, $action, &$result)
Use this hook to interrupt or advise the "user can do X to Y article" check.