/** * @param string $tagSlug * @param int $limit * @param string $type */ protected function runActionDefault($tagSlug, $limit, $type) { $tag = $this->getTag($tagSlug); $state = !$this->canAccess(); $wikis = $tag ? $this->wikiRepository->getAllByTagForPage($this->vp->page, $limit, $tag, $type, $state) : $this->wikiRepository->getAllForPage($this->vp->page, $limit, $type, $state); $this->preparePaginator($wikis->count(), $limit); $this->throw404IfNoItemsOnPage($wikis, $tag); $this->wikis = $wikis; $this->tag = $tag; }