| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Hook; |
| 4 | |
| 5 | // phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps |
| 6 | use MediaWiki\Title\Title; |
| 7 | |
| 8 | /** |
| 9 | * This is a hook handler interface, see docs/Hooks.md. |
| 10 | * Use the hook name "GetLocalURL::Internal" to register handlers implementing this interface. |
| 11 | * |
| 12 | * @stable to implement |
| 13 | * @ingroup Hooks |
| 14 | */ |
| 15 | interface GetLocalURL__InternalHook { |
| 16 | /** |
| 17 | * Use this hook to modify local URLs to internal pages. |
| 18 | * |
| 19 | * @since 1.35 |
| 20 | * |
| 21 | * @param Title $title Title object of page |
| 22 | * @param string &$url String value as output (out parameter, can modify) |
| 23 | * @param string $query Query options as string passed to Title::getLocalURL() |
| 24 | * @return bool|void True or no return value to continue or false to abort |
| 25 | */ |
| 26 | public function onGetLocalURL__Internal( $title, &$url, $query ); |
| 27 | } |