/** * @return mixed */ public function getMenu() { return $this->menu->items(); }
/** * @param MenuItemInterface $item * @return $this */ public function removeChild(MenuItemInterface $item) { $this->children->removeElement($item); return $this; }
/** * @return mixed */ public function getMenu() { //return array(); return $this->menu->items(); }
/** * @param MenuItem[]|ArrayCollection $items */ public function addItems($items) { $this->items->add($items); }
/** * Remove item * * @param \Devtronic\CmsBundle\Entity\MenuItem $item */ public function removeItem(\Devtronic\CmsBundle\Entity\MenuItem $item) { $this->items->removeElement($item); }
/** * @param MenuItem $child */ public function removeChild(MenuItem $child) { $this->children->removeElement($child); }