Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace MediaWiki\Hook;
4
5// phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps
6use MediaWiki\Title\Title;
7
8/**
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "GetLocalURL::Article" to register handlers implementing this interface.
11 *
12 * @stable to implement
13 * @ingroup Hooks
14 */
15interface GetLocalURL__ArticleHook {
16    /**
17     * Use this hook to modify local URLs specifically pointing to article paths
18     * without any fancy queries or variants.
19     *
20     * @since 1.35
21     *
22     * @param Title $title Title object of page
23     * @param string &$url String value as output (out parameter, can modify)
24     * @return bool|void True or no return value to continue or false to abort
25     */
26    public function onGetLocalURL__Article( $title, &$url );
27}