wiki.techinc.nl/includes/changes/Hook/EnhancedChangesListModifyLineDataHook.php
apaskulin c44488f725 docs: Hook interface doc comment review
Edited doc comments for hook interfaces to improve
consistency and add type hints.

Bug: T246855
Change-Id: I38fa802463cd6f39bf5946dbbeb1b3ebaea604b2
2020-04-21 09:10:08 +10:00

33 lines
1.1 KiB
PHP

<?php
namespace MediaWiki\Hook;
use EnhancedChangesList;
use RecentChange;
/**
* @stable for implementation
* @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 array &$classes Array of classes to change
* @param array &$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
);
}