protected function _beforeToHtml() { foreach ($this->getMenuItems() as $item) { $this->addModelTags($item); } return parent::_beforeToHtml(); }
protected function _beforeToHtml() { if ($this->_categoriesCache !== null) { foreach ($this->_categoriesCache as $category) { $this->addModelTags($category); } } return parent::_beforeToHtml(); }