3 namespace MediaWiki\Page\Hook
;
5 use MediaWiki\User\User
;
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "PageViewUpdates" to register handlers implementing this interface.
12 * @stable to implement
15 interface PageViewUpdatesHook
{
17 * Use this hook to make database (or other) changes after a
18 * page view is seen by MediaWiki. Note this does not capture views made
19 * via external caches such as Squid.
23 * @param WikiPage $wikipage Page being viewed
24 * @param User $user User who is viewing
25 * @return bool|void True or no return value to continue or false to abort
27 public function onPageViewUpdates( $wikipage, $user );