public function TextValueInterface::setTokens in Search API 8
Sets the text tokens for the text value.
Parameters
\Drupal\search_api\Plugin\search_api\data_type\value\TextTokenInterface[]|null $tokens: The new text tokens, or NULL to remove them.
Return value
$this
1 method overrides TextValueInterface::setTokens()
- TextValue::setTokens in src/
Plugin/ search_api/ data_type/ value/ TextValue.php - Sets the text tokens for the text value.
File
- src/
Plugin/ search_api/ data_type/ value/ TextValueInterface.php, line 76
Class
- TextValueInterface
- Provides an interface for fulltext field values.
Namespace
Drupal\search_api\Plugin\search_api\data_type\valueCode
public function setTokens(array $tokens = NULL);