Cake\ElasticSearch\Document::highlights PHP Method

highlights() public method

If this is a new document, or the query used to create it did not ask for highlights, this function will return an empty array.
public highlights ( ) : array
return array
    public function highlights()
    {
        if ($this->_result) {
            return $this->_result->getHighlights();
        }
        return [];
    }