Cake\ElasticSearch\Document::highlights PHP Méthode

highlights() public méthode

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
Résultat array
    public function highlights()
    {
        if ($this->_result) {
            return $this->_result->getHighlights();
        }
        return [];
    }