Page MenuHomeWickedGov Phorge

LinkerGenerateRollbackLinkHook.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

LinkerGenerateRollbackLinkHook.php

<?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

Mime Type
text/x-php
Expires
Sat, May 16, 21:07 (1 d, 20 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
21/eb/883966519ab49297f26489fa038e
Default Alt Text
LinkerGenerateRollbackLinkHook.php (1 KB)

Event Timeline