wiki.techinc.nl/includes/changes/Hook/EnhancedChangesListModifyLineDataHook.php
daniel 2e57447c58 Document hook names in hook interfaces.
Bug: T258665
Change-Id: Ifddbf57f8aa2e3eb0d5845601376cbafa08ed407
2020-09-27 12:03:12 +02:00

36 lines
1.2 KiB
PHP

<?php
namespace MediaWiki\Hook;
use EnhancedChangesList;
use RecentChange;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "EnhancedChangesListModifyLineData" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface EnhancedChangesListModifyLineDataHook {
/**
* Use this hook to alter data used to build a grouped recent change inner line in
* EnhancedChangesList.
*
* @since 1.35
*
* @param EnhancedChangesList $changesList
* @param array &$data Array of components that will be joined in order to create the line
* @param RecentChange[] $block Array of RecentChange objects in that block
* @param RecentChange $rc RecentChange object for this line
* @param string[] &$classes Array of classes to change
* @param string[] &$attribs Associative array of other HTML attributes for the `<tr>` 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 this line from
* recentchanges
*/
public function onEnhancedChangesListModifyLineData( $changesList, &$data,
$block, $rc, &$classes, &$attribs
);
}