aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Hook/GetInternalURLHook.php
blob: c339db9b48571714eb4c58d69098b3440253c509 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

namespace MediaWiki\Hook;

use Title;

/**
 * @stable for implementation
 * @ingroup Hooks
 */
interface GetInternalURLHook {
	/**
	 * Use this hook to modify fully-qualified URLs used for squid cache purging.
	 *
	 * @since 1.35
	 *
	 * @param Title $title Title object of page
	 * @param string &$url String value as output (out parameter, can modify)
	 * @param string $query Query options as string passed to Title::getInternalURL()
	 * @return bool|void True or no return value to continue or false to abort
	 */
	public function onGetInternalURL( $title, &$url, $query );
}