| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Hook; |
| 4 | |
| 5 | use MediaWiki\Title\Title; |
| 6 | use stdClass; |
| 7 | |
| 8 | /** |
| 9 | * This is a hook handler interface, see docs/Hooks.md. |
| 10 | * Use the hook name "WhatLinksHereProps" to register handlers implementing this interface. |
| 11 | * |
| 12 | * @stable to implement |
| 13 | * @ingroup Hooks |
| 14 | */ |
| 15 | interface WhatLinksHerePropsHook { |
| 16 | /** |
| 17 | * Use this hook to add annotations to Special:WhatLinksHere. |
| 18 | * |
| 19 | * @since 1.35 |
| 20 | * |
| 21 | * @param stdClass $row The DB row of the entry. |
| 22 | * @param Title $title The Title of the page where the link comes FROM |
| 23 | * @param Title $target The Title of the page where the link goes TO |
| 24 | * @param string[] &$props Array of HTML strings to display after the title. |
| 25 | * @return bool|void True or no return value to continue or false to abort |
| 26 | */ |
| 27 | public function onWhatLinksHereProps( $row, $title, $target, &$props ); |
| 28 | } |