MediaWiki  master
MediaWiki\Search\SearchWidgets\SearchResultWidget Interface Reference

Renders a single search result to HTML. More...

Inheritance diagram for MediaWiki\Search\SearchWidgets\SearchResultWidget:

Public Member Functions

 render (SearchResult $result, $position)
 

Detailed Description

Renders a single search result to HTML.

Definition at line 10 of file SearchResultWidget.php.

Member Function Documentation

◆ render()

MediaWiki\Search\SearchWidgets\SearchResultWidget::render ( SearchResult  $result,
  $position 
)
Parameters
SearchResult$resultThe result to render
int$positionThe zero indexed result position, including offset
Returns
string HTML

Implemented in MediaWiki\Search\SearchWidgets\FullSearchResultWidget, MediaWiki\Search\SearchWidgets\SimpleSearchResultWidget, and MediaWiki\Search\SearchWidgets\InterwikiSearchResultWidget.


The documentation for this interface was generated from the following file: