Debian Codegraph @

includes/search/Hook/PrefixSearchExtractNamespaceHook.php

raw symbols SCIP
1 <?php
2
3 namespace 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 */
12 interface 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 }