| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Hook; |
| 4 | |
| 5 | use MediaWiki\Linker\LinkTarget; |
| 6 | use MediaWiki\Specials\SpecialTrackingCategories; |
| 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 "SpecialTrackingCategories::generateCatLink" to register handlers implementing this interface. |
| 12 | * |
| 13 | * @stable to implement |
| 14 | * @ingroup Hooks |
| 15 | */ |
| 16 | interface SpecialTrackingCategories__generateCatLinkHook { |
| 17 | /** |
| 18 | * This hook is called for each category link on Special:TrackingCategories. |
| 19 | * |
| 20 | * @since 1.35 |
| 21 | * |
| 22 | * @param SpecialTrackingCategories $specialPage |
| 23 | * @param LinkTarget $catTitle The LinkTarget object of the linked category |
| 24 | * @param string &$html The Result html |
| 25 | * @return bool|void True or no return value to continue or false to abort |
| 26 | */ |
| 27 | public function onSpecialTrackingCategories__generateCatLink( $specialPage, |
| 28 | $catTitle, &$html |
| 29 | ); |
| 30 | } |