public function TextValue::setText in Search API 8
Sets the currently stored text value.
Parameters
string $text: The new text value.
Return value
$this
Overrides TextValueInterface::setText
File
- src/
Plugin/ search_api/ data_type/ value/ TextValue.php, line 72
Class
- TextValue
- Represents a single value of a fulltext field.
Namespace
Drupal\search_api\Plugin\search_api\data_type\valueCode
public function setText($text) {
$this->text = $text;
return $this;
}