Frontend\Modules\Search\Ajax\Livesuggest::parse PHP Method

parse() private method

Parse the data into the template
private parse ( )
    private function parse()
    {
        $this->tpl = $this->get('templating');
        // no search term = no search
        if (!$this->term) {
            return;
        }
        // assign articles
        $this->tpl->assign('searchResults', $this->items);
        $this->tpl->assign('searchTerm', $this->term);
        // parse the pagination
        $this->parsePagination();
    }