/** * Prepare subnodes for the location path node * * @param \XLite\Model\Category $category Node category * * @return array */ protected function getLocationNodeSubnodes(\XLite\Model\Category $category) { $nodes = array(); foreach ($category->getSiblings(true) as $category) { $nodes[] = \XLite\View\Location\Node::create($category->getName(), $this->getCategoryURL($category)); } return $nodes; }
/** * {@inheritDoc} */ public function getSiblings($hasSelf = false) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getSiblings', array($hasSelf)); return parent::getSiblings($hasSelf); }