MediaWiki REL1_39
WatchArticleHook.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Hook;
4
5use Status;
6use User;
7use WikiPage;
8
29 public function onWatchArticle( $user, $page, &$status, $expiry );
30}
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition Status.php:44
internal since 1.36
Definition User.php:70
Base representation for an editable wiki page.
Definition WikiPage.php:62
This is a hook handler interface, see docs/Hooks.md.
onWatchArticle( $user, $page, &$status, $expiry)
This hook is called before a watch is added to an article.