| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Hook; |
| 4 | |
| 5 | use MediaWiki\Output\OutputPage; |
| 6 | use Skin; |
| 7 | |
| 8 | /** |
| 9 | * This is a hook handler interface, see docs/Hooks.md. |
| 10 | * Use the hook name "SkinSubPageSubtitle" to register handlers implementing this interface. |
| 11 | * |
| 12 | * @stable to implement |
| 13 | * @ingroup Hooks |
| 14 | */ |
| 15 | interface SkinSubPageSubtitleHook { |
| 16 | /** |
| 17 | * This hook is called at the beginning of Skin::subPageSubtitle(). |
| 18 | * |
| 19 | * @since 1.35 |
| 20 | * |
| 21 | * @param string &$subpages Subpage links HTML |
| 22 | * @param Skin $skin |
| 23 | * @param OutputPage $out |
| 24 | * @return bool|void True or no return value to continue or false to abort. |
| 25 | * If true is returned, $subpages will be ignored and the rest of subPageSubtitle() |
| 26 | * will run. If false is returned, $subpages will be used instead of the HTML |
| 27 | * subPageSubtitle() generates. |
| 28 | */ |
| 29 | public function onSkinSubPageSubtitle( &$subpages, $skin, $out ); |
| 30 | } |