Exemple #1
0
 /**
  * Remove item
  *
  * @param \Devtronic\CmsBundle\Entity\MenuItem $item
  */
 public function removeItem(\Devtronic\CmsBundle\Entity\MenuItem $item)
 {
     $this->items->removeElement($item);
 }
Exemple #2
0
 /**
  * @param MenuItemInterface $item
  * @return $this
  */
 public function removeChild(MenuItemInterface $item)
 {
     $this->children->removeElement($item);
     return $this;
 }
Exemple #3
0
 /**
  * @param MenuItem $child
  */
 public function removeChild(MenuItem $child)
 {
     $this->children->removeElement($child);
 }