Manual:Hooks/OutputPageCheckLastModified

Category:MediaWiki hooks#OutputPageCheckLastModified Category:Hooks added in MediaWiki 1.14.0#OutputPageCheckLastModified
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": "MediaWiki\\Extension\\MyExtension\\Hooks::onOutputPageCheckLastModified"
	}
}
Called from: File(s): Output/OutputPage.phpCategory:MediaWiki hooks included in OutputPage.php#OutputPageCheckLastModified
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:
  • $out: OutputPage object
Category:Hooks added in MediaWiki 1.14.0 Category:MediaWiki hooks Category:MediaWiki hooks included in OutputPage.php