MediaWiki REL1_37
MediaWiki\Search\Hook\SearchableNamespacesHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Search\Hook\SearchableNamespacesHook:

Public Member Functions

 onSearchableNamespaces (&$arr)
 Use this hook to modify which namespaces are searchable.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "SearchableNamespaces" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 12 of file SearchableNamespacesHook.php.

Member Function Documentation

◆ onSearchableNamespaces()

MediaWiki\Search\Hook\SearchableNamespacesHook::onSearchableNamespaces ( $arr)

Use this hook to modify which namespaces are searchable.

Since
1.35
Parameters
int[]&$arrArray of namespaces ($nsId => $name) which will be used
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: