Added release notes for 'ContentHandler::runLegacyHooks' removal
[mediawiki.git] / includes / widget / search / SearchResultWidget.php
blob3fbdbef2a920711c81daa8506129e7b04d0c7f00
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 zero indexed result position, including offset
15 * @return string HTML
17 public function render( SearchResult $result, $terms, $position );