MediaWiki  master
MediaWiki\Hook\OutputPageCheckLastModifiedHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\OutputPageCheckLastModifiedHook:

Public Member Functions

 onOutputPageCheckLastModified (&$modifiedTimes, $out)
 This hook is called when checking if the page has been modified since the last visit. More...
 

Detailed Description

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

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

Stable to implement

Definition at line 14 of file OutputPageCheckLastModifiedHook.php.

Member Function Documentation

◆ onOutputPageCheckLastModified()

MediaWiki\Hook\OutputPageCheckLastModifiedHook::onOutputPageCheckLastModified ( $modifiedTimes,
  $out 
)

This hook is called when checking if the page has been modified since the last visit.

Since
1.35
Parameters
string[]&$modifiedTimesArray of timestamps. The following keys are set: page, user, epoch.
OutputPage$outsince 1.28
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner, and MediaWiki\Api\ApiHookRunner.


The documentation for this interface was generated from the following file: