MediaWiki REL1_40
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onShowSearchHit ( $searchPage, $result, $terms, &$link, &$redirect, &$section, &$extract, &$score, &$size, &$date, &$related, &$html) | |
Use this hook to customize display of search hit. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ShowSearchHit" to register handlers implementing this interface.
Definition at line 15 of file ShowSearchHitHook.php.
MediaWiki\Search\Hook\ShowSearchHitHook::onShowSearchHit | ( | $searchPage, | |
$result, | |||
$terms, | |||
& | $link, | ||
& | $redirect, | ||
& | $section, | ||
& | $extract, | ||
& | $score, | ||
& | $size, | ||
& | $date, | ||
& | $related, | ||
& | $html ) |
Use this hook to customize display of search hit.
SpecialSearch | $searchPage | |
SearchResult | $result | SearchResult to show |
string[] | $terms | Search terms, for highlighting (unreliable as search engine dependent) |
string | &$link | HTML of link to the matching page. May be modified. |
string | &$redirect | HTML of redirect info. May be modified. |
string | &$section | HTML of matching section. May be modified. |
string | &$extract | HTML of content extract. May be modified. |
string | &$score | HTML of score. May be modified. |
string | &$size | HTML of page size. May be modified. |
string | &$date | HTML of page modification date. May be modified. |
string | &$related | HTML of additional info for the matching page. May be modified. |
string | &$html | May be set to the full HTML that should be used to represent the search hit. Must include the <li> ... </li> tags. Will only be used if the hook function returned false. |
Implemented in MediaWiki\HookContainer\HookRunner.