You are here

public function Item::getExcerpt in Search API 8

Returns an HTML text with highlighted text-parts that match the query.

Return value

string|null If set, an HTML text containing highlighted portions of the fulltext that match the query. NULL otherwise.

Overrides ItemInterface::getExcerpt

1 call to Item::getExcerpt()
Item::__toString in src/Item/Item.php
Implements the magic __toString() method to simplify debugging.

File

src/Item/Item.php, line 379

Class

Item
Provides a default implementation for a search item.

Namespace

Drupal\search_api\Item

Code

public function getExcerpt() {
  return $this->excerpt;
}