/** * Load category data to the template. * * @param ICategory $category */ public function load(ICategory $category) { $this->template->set('title', $category->getTitle()); $this->template->set('meta_title', $category->metaTitle()); $this->template->set('meta_keywords', $category->metaKeywords()); $this->template->set('meta_description', $category->metaDescription()); }
/** * Return the view link. * * @return string */ public function viewLink() { return \Html::link($this->entity->path(), $this->entity->getTitle(), ['target' => '_blank']); }