You are here

public function ResultSet::addOneBoxResultSet in Google Search Appliance 8

Adds one box result set.

Parameters

string $module_name: One box module.

\Drupal\google_appliance\SearchResults\OneBoxResultSet $onebox: Results set.

Return value

$this

File

src/SearchResults/ResultSet.php, line 286

Class

ResultSet
Defines a value object for a search response.

Namespace

Drupal\google_appliance\SearchResults

Code

public function addOneBoxResultSet($module_name, OneBoxResultSet $onebox) {
  $this->oneBoxResultSets[$module_name] = $onebox;
  return $this;
}