yii\sphinx\Query::fillUpSnippets PHP Метод

fillUpSnippets() защищенный Метод

Fills the query result rows with the snippets built from source determined by [[snippetCallback]] result.
protected fillUpSnippets ( array $rows ) : array | ActiveRecord[]
$rows array raw query result rows.
Результат array | ActiveRecord[] query result rows with filled up snippets.
    protected function fillUpSnippets($rows)
    {
        if ($this->snippetCallback === null || empty($rows)) {
            return $rows;
        }
        $snippetSources = call_user_func($this->snippetCallback, $rows);
        $snippets = $this->callSnippets($snippetSources);
        $snippetKey = 0;
        foreach ($rows as $key => $row) {
            $rows[$key]['snippet'] = $snippets[$snippetKey];
            $snippetKey++;
        }
        return $rows;
    }