protected function createComponentTagCloud() { $cloud = new \TagCloud(); $cloud->data = $this->tags->getCloud(); $cloud->destination = "blog:"; return $cloud; }
public function getCategory($category = '') { $category = $this->tagRepository->getByName($category); if ($category && $category->type == 'category') { return $category; } return FALSE; }