Available from version 1.28.0 (Gerrit change 266670)
Called before rendering a row for Special:Contributions.
Define function:
public static function onSpecialContributions_formatRow_flags( IContextSource $context, $row, array &$flags ) { ... }
Attach hook: In extension.json:
	"Hooks": {
		"SpecialContributions::formatRow::flags": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialContributionsformatRowflags"
Called from: File(s): specials/pagers/ContribsPager.php
Interface: SpecialContributions__formatRow__flagsHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:SpecialContributions::formatRow::flags extensions.

Details edit

  • $context: IContextSource object
  • $row: Revision information from the database
  • &$flags: List of flags on this row