Page MenuHomeWickedGov Phorge

WatchArticleHook.php
No OneTemporary

Size
881 B
Referenced Files
None
Subscribers
None

WatchArticleHook.php

<?php
namespace MediaWiki\Hook;
use MediaWiki\Status\Status;
use MediaWiki\User\User;
use WikiPage;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "WatchArticle" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface WatchArticleHook {
/**
* This hook is called before a watch is added to an article.
*
* @since 1.35
*
* @param User $user User that will watch
* @param WikiPage $page WikiPage object to be watched
* @param Status &$status Status object to be returned if the hook returns false
* @param string|null $expiry Optional expiry timestamp in any format acceptable to wfTimestamp()
* @return bool|void True or no return value to continue or false to abort and
* return Status object
*/
public function onWatchArticle( $user, $page, &$status, $expiry );
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 3, 05:42 (2 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
83/6b/8627662cd8c25b160068782a88e3
Default Alt Text
WatchArticleHook.php (881 B)

Event Timeline