/**
  * @return mixed
  */
 public function getMenu()
 {
     return $this->menu->items();
 }
Esempio n. 2
0
 /**
  * @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();
 }
Esempio n. 4
0
 /**
  * @param MenuItem[]|ArrayCollection $items
  */
 public function addItems($items)
 {
     $this->items->add($items);
 }
Esempio n. 5
0
 /**
  * Remove item
  *
  * @param \Devtronic\CmsBundle\Entity\MenuItem $item
  */
 public function removeItem(\Devtronic\CmsBundle\Entity\MenuItem $item)
 {
     $this->items->removeElement($item);
 }
Esempio n. 6
0
 /**
  * @param MenuItem $child
  */
 public function removeChild(MenuItem $child)
 {
     $this->children->removeElement($child);
 }