MediaWiki master
SearchDataForIndex2Hook.php
Go to the documentation of this file.
1<?php
2
4
9use WikiPage;
10
19
34 public function onSearchDataForIndex2(
35 array &$fields,
36 ContentHandler $handler,
37 WikiPage $page,
38 ParserOutput $output,
39 SearchEngine $engine,
40 RevisionRecord $revision
41 );
42}
A content handler knows how do deal with a specific type of content on a wiki page.
ParserOutput is a rendering of a Content object or a message.
Page revision base class.
Contain a class for special pages.
Base representation for an editable wiki page.
Definition WikiPage.php:79
This is a hook handler interface, see docs/Hooks.md.
onSearchDataForIndex2(array &$fields, ContentHandler $handler, WikiPage $page, ParserOutput $output, SearchEngine $engine, RevisionRecord $revision)
Use this hook to add data to search document.