public function TextValue::getTokens in Search API 8
Retrieves the text tokens this text value was split into, if any.
Return value
\Drupal\search_api\Plugin\search_api\data_type\value\TextTokenInterface[]|null The text tokens this text value was split into, or NULL if the value has not been tokenized in any way yet.
Overrides TextValueInterface::getTokens
1 call to TextValue::getTokens()
- TextValue::toText in src/
Plugin/ search_api/ data_type/ value/ TextValue.php - Retrieves the current effective text value.
File
- src/
Plugin/ search_api/ data_type/ value/ TextValue.php, line 95
Class
- TextValue
- Represents a single value of a fulltext field.
Namespace
Drupal\search_api\Plugin\search_api\data_type\valueCode
public function getTokens() {
return $this->tokens;
}