Jump to content
MediaWiki

Manual:Hooks/LinkerGenerateRollbackLink

From mediawiki.org
LinkerGenerateRollbackLink
Available from version 1.36.0 (Gerrit change 595894)
called before a rollback link is displayed, and after all checks have been performed
Define function:
public static function onLinkerGenerateRollbackLink( MediaWiki\Revision\RevisionRecord $revRecord, MediaWiki\Context\IContextSource $context, array $options, string &$inner ) { ... }
Attach hook: In extension.json:
{
"Hooks":{
"LinkerGenerateRollbackLink":"MediaWiki\\Extension\\MyExtension\\Hooks::onLinkerGenerateRollbackLink"
}
}
Called from: File(s): linker/Linker.php
Interface: LinkerGenerateRollbackLinkHook.php

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


This hook allows for customizing the appearance of the link or substituting it with something entirely different.

AltStyle によって変換されたページ (->オリジナル) /