Jump to content

Manual:Hooks/DifferenceEngineRenderRevisionShowFinalPatrolLink

From mediawiki.org
DifferenceEngineRenderRevisionShowFinalPatrolLink
Available from version 1.29.0 (Gerrit change 298026)
An extension can hook into this hook point and return false to not show the final "mark as patrolled" link on the bottom of a page.
Define function:
public static function onDifferenceEngineRenderRevisionShowFinalPatrolLink(  ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"DifferenceEngineRenderRevisionShowFinalPatrolLink": "MediaWiki\\Extension\\MyExtension\\Hooks::onDifferenceEngineRenderRevisionShowFinalPatrolLink"
	}
}
Called from: File(s): diff/DifferenceEngine.php
Function(s): renderNewRevision
Interface: DifferenceEngineRenderRevisionShowFinalPatrolLinkHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:DifferenceEngineRenderRevisionShowFinalPatrolLink extensions.