MediaWiki  master
Page\Hook\PageViewUpdatesHook Interface Reference

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

Inheritance diagram for Page\Hook\PageViewUpdatesHook:

Public Member Functions

 onPageViewUpdates ( $wikipage, $user)
 Use this hook to make database (or other) changes after a page view is seen by MediaWiki. More...
 

Detailed Description

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

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

Stable to implement

Definition at line 15 of file PageViewUpdatesHook.php.

Member Function Documentation

◆ onPageViewUpdates()

Page\Hook\PageViewUpdatesHook::onPageViewUpdates (   $wikipage,
  $user 
)

Use this hook to make database (or other) changes after a page view is seen by MediaWiki.

Note this does not capture views made via external caches such as Squid.

Since
1.35
Parameters
WikiPage$wikipagePage being viewed
User$userUser who is viewing
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: