MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onWatchArticle ( $user, $page, &$status, $expiry) | |
This hook is called before a watch is added to an article. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "WatchArticle" to register handlers implementing this interface.
Definition at line 16 of file WatchArticleHook.php.
MediaWiki\Hook\WatchArticleHook::onWatchArticle | ( | $user, | |
$page, | |||
& | $status, | ||
$expiry | |||
) |
This hook is called before a watch is added to an article.
User | $user | User that will watch |
WikiPage | $page | WikiPage object to be watched |
Status | &$status | Status object to be returned if the hook returns false |
string | null | $expiry | Optional expiry timestamp in any format acceptable to wfTimestamp() |
Implemented in MediaWiki\HookContainer\HookRunner.