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\Search\Hook;
4
5/**
6 * This is a hook handler interface, see docs/Hooks.md.
7 * Use the hook name "PrefixSearchExtractNamespace" to register handlers implementing this interface.
8 *
9 * @stable to implement
10 * @ingroup Hooks
11 */
12interface PrefixSearchExtractNamespaceHook {
13    /**
14     * This hook is called if core was not able to extract a
15     * namespace from the search string so that extensions can attempt it.
16     *
17     * @since 1.35
18     *
19     * @param int[] &$namespaces Array of int namespace keys to search in
20     *   (change this if you can extract namespaces)
21     * @param string &$search Search term (replace this with term without
22     *   the namespace if you can extract one)
23     * @return bool|void True or no return value to continue or false to abort
24     */
25    public function onPrefixSearchExtractNamespace( &$namespaces, &$search );
26}