Pimcore\Model\Element\Tag\Listing\Dao::load PHP Method

load() public method

Loads a list of tags for the specified parameters, returns an array of Element\Tag elements
public load ( ) : array
return array
    public function load()
    {
        $tagsData = $this->db->fetchCol("SELECT id FROM tags" . $this->getCondition() . $this->getOrder() . $this->getOffsetLimit(), $this->model->getConditionVariables());
        $tags = [];
        foreach ($tagsData as $tagData) {
            if ($tag = Model\Element\Tag::getById($tagData)) {
                $tags[] = $tag;
            }
        }
        $this->model->setTags($tags);
        return $tags;
    }