src/TagField.php
protected function getTags($term)
    {
        $source = $this->getSourceList();

        $titleField = $this->getTitleField();

        $query = $source
            ->filter($titleField . ':PartialMatch:nocase', $term)
            ->sort($titleField)
            ->limit($this->getLazyLoadItemLimit());

        // Map into a distinct list
        $items = [];
        $titleField = $this->getTitleField();
        foreach ($query->map('ID', $titleField) as $id => $title) {
            $items[$title] = [
                'id' => $title,
                'text' => $title,
            ];
        }

        return array_values($items);
    }
protected function getTags($term)
    {
        $source = $this->getSourceList();

        $titleField = $this->getTitleField();

        $query = $source
            ->filter($titleField . ':PartialMatch:nocase', $term)
            ->sort($titleField)
            ->limit($this->getLazyLoadItemLimit());

        // Map into a distinct list
        $items = [];
        $titleField = $this->getTitleField();
        foreach ($query->map('ID', $titleField) as $id => $title) {
            $items[$title] = [
                'id' => $title,
                'text' => $title,
            ];
        }

        return array_values($items);
    }
protected function getTags ( $ term ) { $ source = $ this -> getSourceList ( ) ; $ titleField = $ this -> getTitleField ( ) ; $ query = $ source -> filter ( $ titleField . ':PartialMatch:nocase' , $ term ) -> sort ( $ titleField ) -> limit ( $ this -> getLazyLoadItemLimit ( ) ) ; // Map into a distinct list $ items = [ ] ; $ titleField = $ this -> getTitleField ( ) ; foreach ( $ query -> map ( 'ID' , $ titleField ) as $ id => $ title ) { $ items [ $ title ] = [ 'id' => $ title , 'text' => $ title , ] ; } return array_values ( $ items ) ; }
Returns array of arrays representing tags.

@param  string $term
@return array
Returns array of arrays representing tags .