MediaWiki REL1_39
MediaWiki\Linker\Hook\LinkerGenerateRollbackLinkHook Interface Reference
Inheritance diagram for MediaWiki\Linker\Hook\LinkerGenerateRollbackLinkHook:

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.
 

Detailed Description

Stability: stable
to implement

Definition at line 12 of file LinkerGenerateRollbackLinkHook.php.

Member Function Documentation

◆ onLinkerGenerateRollbackLink()

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.

See also
Linker::generateRollback()
Since
1.36
Parameters
RevisionRecord$revRecordThe top RevisionRecord that is being rolled back
IContextSource$contextThe context source provided to the method
array$optionsArray of options for the Linker::generateRollback() method
string&$innerHTML of the rollback link
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: