Page MenuHomeWickedGov Phorge

PageHistoryLineEndingHook.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

PageHistoryLineEndingHook.php

<?php
namespace MediaWiki\Hook;
use MediaWiki\Pager\HistoryPager;
use stdClass;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "PageHistoryLineEnding" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface PageHistoryLineEndingHook {
/**
* This hook is called right before the `<li>` is generated for a history line.
*
* @since 1.35
*
* @param HistoryPager $historyAction
* @param stdClass &$row The revision row for this line
* @param string &$s The string representing this parsed line
* @param string[] &$classes Array containing the `<li>` element classes
* @param array &$attribs Associative array of other HTML attributes for the `<li>` element.
* Currently only data attributes reserved to MediaWiki are allowed
* (see Sanitizer::isReservedDataAttribute).
* @return bool|void True or no return value to continue or false to abort
*/
public function onPageHistoryLineEnding( $historyAction, &$row, &$s, &$classes,
&$attribs
);
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Oct 4, 00:53 (3 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
07/91/ca1daa03d9a3cc828502a9abb443
Default Alt Text
PageHistoryLineEndingHook.php (1 KB)

Event Timeline