wiki.techinc.nl/includes/changes/Hook/OldChangesListRecentChangesLineHook.php
Tim Starling 0b7295a5cd Hook interface doc comment followup
Mostly just narrower array types. A handful of other errors fixed.

Change-Id: Ied79d9e389867911bf83696dbb47f43305f8be7b
2020-04-21 09:12:23 +10:00

31 lines
943 B
PHP

<?php
namespace MediaWiki\Hook;
use OldChangesList;
use RecentChange;
/**
* @stable for implementation
* @ingroup Hooks
*/
interface OldChangesListRecentChangesLineHook {
/**
* Use this hook to customize a recent changes line.
*
* @since 1.35
*
* @param OldChangesList $changeslist
* @param string &$s HTML of the form `<li>...</li>` containing one RC entry
* @param RecentChange $rc
* @param string[] &$classes Array of CSS classes for the `<li>` element
* @param string[] &$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 omit the line from
* RecentChanges and Watchlist special pages
*/
public function onOldChangesListRecentChangesLine( $changeslist, &$s, $rc,
&$classes, &$attribs
);
}