MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onSearchDataForIndex (&$fields, $handler, $page, $output, $engine) | |
Use this hook to add data to search document. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "SearchDataForIndex" to register handlers implementing this interface.
Definition at line 18 of file SearchDataForIndexHook.php.
MediaWiki\Content\Hook\SearchDataForIndexHook::onSearchDataForIndex | ( | & | $fields, |
$handler, | |||
$page, | |||
$output, | |||
$engine ) |
Use this hook to add data to search document.
Allows you to add any data to the field map used to index the document.
array | &$fields | Array of name => value pairs for fields |
ContentHandler | $handler | ContentHandler for the content being indexed |
WikiPage | $page | WikiPage that is being indexed |
ParserOutput | $output | ParserOutput that is produced from the page |
SearchEngine | $engine | SearchEngine for which the indexing is intended |
Implemented in MediaWiki\HookContainer\HookRunner.