Fix namespace handling for uncategorized-categories-exceptionlist
[mediawiki.git] / includes / widget / search / SearchResultWidget.php
blobb53cd5d2d219d04accdf1807a7b60366fba7ed57
1 <?php
3 namespace MediaWiki\Widget\Search;
5 use SearchResult;
7 /**
8 * Renders a single search result to HTML
9 */
10 interface SearchResultWidget {
11 /**
12 * @param SearchResult $result The result to render
13 * @param string $terms Terms to be highlighted (@see SearchResult::getTextSnippet)
14 * @param int $position The result position, including offset
15 * @return string HTML
17 public function render( SearchResult $result, $terms, $position );