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