public function Item::setExcerpt in Search API 8
Sets an HTML text with highlighted text-parts that match the query.
Parameters
string $excerpt: The HTML text with highlighted text-parts that match the query.
Return value
$this
Overrides ItemInterface::setExcerpt
File
- src/
Item/ Item.php, line 386
Class
- Item
- Provides a default implementation for a search item.
Namespace
Drupal\search_api\ItemCode
public function setExcerpt($excerpt) {
$this->excerpt = $excerpt;
return $this;
}