MediaWiki master
MediaWiki\Hook\WatchArticleCompleteHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onWatchArticleComplete ( $user, $page)
 This hook is called after a watch is added to an article.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "WatchArticleComplete" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 15 of file WatchArticleCompleteHook.php.

Member Function Documentation

◆ onWatchArticleComplete()

MediaWiki\Hook\WatchArticleCompleteHook::onWatchArticleComplete ( $user,
$page )

This hook is called after a watch is added to an article.

Since
1.35
Parameters
User$userUser that watched
WikiPage$pageWikiPage object watched
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


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