< Manual:Hooks 
 
      | OutputPageCheckLastModified | |
|---|---|
| Available from version 1.14.0 When checking if the page has been modified since the last visit | |
| Define function: | public static function onOutputPageCheckLastModified( &$modifiedTimes, $out ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"OutputPageCheckLastModified": "MyExtensionHooks::onOutputPageCheckLastModified"
	}
}
 | 
| Called from: | File(s): OutputPage.php | 
| Interface: | OutputPageCheckLastModifiedHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:OutputPageCheckLastModified extensions.
Details
- &$modifiedTimes: array of timestamps, the following keys are set:
- page: page's timestamp
- user: user's timestamp
- epoch: $wgCacheEpoch
 
- $out: OutputPage object
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.