You are here

public function OneBoxResult::addFieldValue in Google Search Appliance 8

Add field value.

Parameters

string $name: Field name.

string $value: Field value.

Return value

$this

File

src/SearchResults/OneBoxResult.php, line 54

Class

OneBoxResult
Defines a value object for a one-box result.

Namespace

Drupal\google_appliance\SearchResults

Code

public function addFieldValue($name, $value) {
  $this->fields[$name] = $value;
  return $this;
}