You are here

public function OneBoxResultSet::addResult in Google Search Appliance 8

Adds a result.

Parameters

\Drupal\google_appliance\SearchResults\OneBoxResult $result: The result.

Return value

$this

File

src/SearchResults/OneBoxResultSet.php, line 92

Class

OneBoxResultSet
Defines a value object for a one-box result set.

Namespace

Drupal\google_appliance\SearchResults

Code

public function addResult(OneBoxResult $result) {
  $this->results[] = $result;
  return $this;
}