Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1431836
LinkerGenerateRollbackLinkHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
LinkerGenerateRollbackLinkHook.php
View Options
<?php
namespace
MediaWiki\Linker\Hook
;
use
MediaWiki\Context\IContextSource
;
use
MediaWiki\Linker\Linker
;
use
MediaWiki\Revision\RevisionRecord
;
/**
* @stable to implement
* @ingroup Hooks
*/
interface
LinkerGenerateRollbackLinkHook
{
/**
* 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 Linker::generateRollback()
* @since 1.36
*
* @param RevisionRecord $revRecord The top RevisionRecord that is being rolled back
* @param IContextSource $context The context source provided to the method
* @param array $options Array of options for the Linker::generateRollback() method
* @param string &$inner HTML of the rollback link
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onLinkerGenerateRollbackLink
(
$revRecord
,
$context
,
$options
,
&
$inner
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 21:07 (1 d, 17 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
21/eb/883966519ab49297f26489fa038e
Default Alt Text
LinkerGenerateRollbackLinkHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment