_coreRegistry = $coreRegistry; $this->_filterProvider = $filterProvider; $this->_url = $url; } /** * Retrieve category instance * * @return \Magefan\Blog\Model\Category */ public function getCategory() { return $this->_coreRegistry->registry('current_blog_category'); } /** * Retrieve post content * * @return string */ public function getContent() { $category = $this->getCategory(); $key = 'filtered_content'; if (!$category->hasData($key)) { $cotent = $this->_filterProvider->getPageFilter()->filter( $category->getContent() ); $category->setData($key, $cotent); } return $category->getData($key); } }