Page MenuHomeWickedGov Phorge

PrefixSearchExtractNamespaceHook.php
No OneTemporary

Size
850 B
Referenced Files
None
Subscribers
None

PrefixSearchExtractNamespaceHook.php

<?php
namespace MediaWiki\Search\Hook;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "PrefixSearchExtractNamespace" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface PrefixSearchExtractNamespaceHook {
/**
* This hook is called if core was not able to extract a
* namespace from the search string so that extensions can attempt it.
*
* @since 1.35
*
* @param int[] &$namespaces Array of int namespace keys to search in
* (change this if you can extract namespaces)
* @param string &$search Search term (replace this with term without
* the namespace if you can extract one)
* @return bool|void True or no return value to continue or false to abort
*/
public function onPrefixSearchExtractNamespace( &$namespaces, &$search );
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 3, 17:25 (1 d, 9 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c9/d3/2c2163452934bbeb122d8939425e
Default Alt Text
PrefixSearchExtractNamespaceHook.php (850 B)

Event Timeline