You are here

public function TextToken::__toString in Search API 8

Implements the magic __toString() method.

File

src/Plugin/search_api/data_type/value/TextToken.php, line 72

Class

TextToken
Represents a single text token contained in a fulltext field's value.

Namespace

Drupal\search_api\Plugin\search_api\data_type\value

Code

public function __toString() {
  return $this
    ->getText();
}