Manual:Hooks/SpecialContributions::formatRow::flags

SpecialContributions::formatRow::flags
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": "MyExtensionHooks::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.

DetailsEdit

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