| Current Path : /var/www/html/mediawiki-1.43.1/includes/actions/Hook/ |
| Current File : /var/www/html/mediawiki-1.43.1/includes/actions/Hook/WatchArticleCompleteHook.php |
<?php
namespace MediaWiki\Hook;
use MediaWiki\User\User;
use WikiPage;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "WatchArticleComplete" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface WatchArticleCompleteHook {
/**
* This hook is called after a watch is added to an article.
*
* @since 1.35
*
* @param User $user User that watched
* @param WikiPage $page WikiPage object watched
* @return bool|void True or no return value to continue or false to abort
*/
public function onWatchArticleComplete( $user, $page );
}