/** * Getter for channel entries Query\Builder object * * @return FilterFactory */ public function getFilters() { $count = $this->getEntries()->count(); // Add this last to get the right $count $this->filters->add('Perpage', $count, 'all_entries'); return $this->filters; }