MediaWiki REL1_35
MediaWiki\Page\Hook\PageViewUpdatesHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\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.
 

Detailed Description

Stable to implement.

Definition at line 12 of file PageViewUpdatesHook.php.

Member Function Documentation

◆ onPageViewUpdates()

MediaWiki\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: