wiki.techinc.nl/includes/search/searchwidgets/SearchResultSetWidget.php
James D. Forrester 3a9a542e1d widgets: Split out SearchWidgets into their own tree
Expecting people to magically know that MediaWiki\Widget\SearchInputWidget is
generic and for use on random pages, but MediaWiki\Widget\SearchResultWidget
is super-specialised, based on bespoke technologies, and only for use on
Special:Search, is not great.

None of these are used outside the MediaWiki core codebase and so this change
whilst it would otherwise be technically breaking is fine.

Change-Id: I16d21dd5e1ac3aa9893863df272d1bbb4788066f
2020-02-11 14:37:27 -08:00

18 lines
392 B
PHP

<?php
namespace MediaWiki\Search\SearchWidgets;
use ISearchResultSet;
/**
* Renders a set of search results to HTML
*/
interface SearchResultSetWidget {
/**
* @param string $term User provided search term
* @param ISearchResultSet|ISearchResultSet[] $resultSets List of interwiki
* results to render.
* @return string HTML
*/
public function render( $term, $resultSets );
}