| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Hook; |
| 4 | |
| 5 | use MediaWiki\Context\IContextSource; |
| 6 | use stdClass; |
| 7 | |
| 8 | // phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps |
| 9 | /** |
| 10 | * This is a hook handler interface, see docs/Hooks.md. |
| 11 | * Use the hook name "SpecialContributions::formatRow::flags" to register handlers implementing this interface. |
| 12 | * |
| 13 | * @stable to implement |
| 14 | * @ingroup Hooks |
| 15 | */ |
| 16 | interface SpecialContributions__formatRow__flagsHook { |
| 17 | /** |
| 18 | * This hook is called before rendering a Special:Contributions row. |
| 19 | * |
| 20 | * @since 1.35 |
| 21 | * |
| 22 | * @param IContextSource $context |
| 23 | * @param stdClass $row Revision information from the database |
| 24 | * @param string[] &$flags HTML fragments describing flags for this row |
| 25 | * @return bool|void True or no return value to continue or false to abort |
| 26 | */ |
| 27 | public function onSpecialContributions__formatRow__flags( $context, $row, |
| 28 | &$flags |
| 29 | ); |
| 30 | } |