MediaWiki REL1_37
MediaWiki\Page\Hook\PageViewUpdatesHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. 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

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

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

Stability: stable
to implement

Definition at line 15 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: