MediaWiki master
|
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onLinkerGenerateRollbackLink ( $revRecord, $context, $options, &$inner) | |
This hook is called before a rollback link is displayed to allow for customizing the appearance of the link or substituting it with something entirely different. | |
Definition at line 13 of file LinkerGenerateRollbackLinkHook.php.
MediaWiki\Linker\Hook\LinkerGenerateRollbackLinkHook::onLinkerGenerateRollbackLink | ( | $revRecord, | |
$context, | |||
$options, | |||
& | $inner ) |
This hook is called before a rollback link is displayed to allow for customizing the appearance of the link or substituting it with something entirely different.
The call to this hook is made after all checks, so the rollback should be valid.
RevisionRecord | $revRecord | The top RevisionRecord that is being rolled back |
IContextSource | $context | The context source provided to the method |
array | $options | Array of options for the Linker::generateRollback() method |
string | &$inner | HTML of the rollback link |
Implemented in MediaWiki\HookContainer\HookRunner.