|
MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
| onShowSearchHitTitle (&$title, &$titleSnippet, $result, $terms, $specialSearch, &$query, &$attributes) | |
| Use this hook to customise display of search hit title/link. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ShowSearchHitTitle" to register handlers implementing this interface.
Definition at line 17 of file ShowSearchHitTitleHook.php.
| MediaWiki\Search\Hook\ShowSearchHitTitleHook::onShowSearchHitTitle | ( | & | $title, |
| & | $titleSnippet, | ||
| $result, | |||
| $terms, | |||
| $specialSearch, | |||
| & | $query, | ||
| & | $attributes ) |
Use this hook to customise display of search hit title/link.
| Title | &$title | Title to link to |
| string | HtmlArmor | null | &$titleSnippet | Label for the link representing the search result. Typically the article title. |
| SearchResult | $result | |
| array | $terms | Array of search terms extracted by SearchDatabase search engines (may not be populated by other search engines) |
| SpecialSearch | $specialSearch | |
| string[] | &$query | Array of query string parameters for the link representing the search result |
| string[] | &$attributes | Array of title link attributes, can be modified by extension |
Implemented in MediaWiki\HookContainer\HookRunner.