MediaWiki  master
MediaWiki\Hook\UnwatchArticleHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\UnwatchArticleHook:

Public Member Functions

 onUnwatchArticle ( $user, $page, &$status)
 This hook is called before a watch is removed from an article. More...
 

Detailed Description

Stable to implement.

Definition at line 13 of file UnwatchArticleHook.php.

Member Function Documentation

◆ onUnwatchArticle()

MediaWiki\Hook\UnwatchArticleHook::onUnwatchArticle (   $user,
  $page,
$status 
)

This hook is called before a watch is removed from an article.

Since
1.35
Parameters
User$userUser watching
WikiPage$pageWikiPage object to be removed
Status&$statusStatus object to be returned if the hook returns false
Returns
bool|void True or no return value to continue or false to abort and return Status object

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: