Remove items

@param ItemInterface $item
179080
public function removeItem(ItemInterface $item)
    {
        $item->setGrid(null);
        $this->items->removeElement($item);
    }
998842
public function remove(EventInterface $event)
    {
        $index = $this->computeIndex($event);
        if (isset($this->events[$index])) {
            foreach ($this->events[$index] as $key => $internalEvent) {
                if ($event->getUid() == $internalEvent->getUid()) {
                    unset($this->events[$index][$key]);
                    --$this->count;
                }
            }
        }
    }
882909
public function release(QueueItem $item)
    {
        array_unshift($this->items, $item);
        unset($this->invisibleItems[$item->getReceipt()]);
    }
83120
public function removeItem(GridItem $item)
    {
        foreach ($this->rowItems as $rowItem) {
            if ($rowItem->getItem()->getUuid() === $item->getUuid()) {
                $this->rowItems->removeElement($rowItem);
                break;
            }
        }
    }
1324445
public function matchItem(ItemInterface $item)
    {
        foreach ($this->currentUriWithAndWithoutSlash() as $path) {
            if (null === $path || null === $item->getUri()) {
                return null;
            }

            if ($item->getUri() === $path) {
                return true;
            }
        }

        return null;
    }
397426
public function removeItem(Item $item)
    {
        if ($this->items->contains($item)) {
            $this->items->removeElement($item);
            $item->removeLabel($this);
        }

        return $this;
    }
69846
public function addInclude(ItemInterface $item)
    {
        if ($this->hasInclude($item->getId()) === true) {
            throw new \RuntimeException(sprintf('A previous include item exists with the same id: "%s".', $item->getId()));
        }

        $this->includes[$item->getId()] = $item;
    }
1102807
function remove($item) {
        $hash = call_user_func($this->hashFunction, $item);

        assert(is_scalar($hash));

        unset($this->objects[$hash]);
    }
895398
public function remove($item)
    {
        if (!($item instanceof $this->dataClass)) {
            throw new InvalidArgumentException("ManyManyList::remove() expecting a $this->dataClass object");
        }

        return $this->removeByID($item->ID);
    }
841606
public function deleteItem($id)
    {
        $updatedItems = $this->values['items'];
        foreach ($updatedItems as $index => $item) {
            if ($item['id'] == $id) {
                unset($updatedItems[$index]);
            }
        }
        $this->values['items'] = array_values($updatedItems);
    }
626046
public function removeItem(\Wucdbm\Bundle\MenuBuilderBundle\Entity\MenuItem $item) {
        $this->items->removeElement($item);
    }
1075613
public function removeItem(LayoutItem $item)
    {
        $itemId = spl_object_hash($item);

        foreach ($this as $myItem) {
            if ($itemId == spl_object_hash($myItem)) {
                return $this->remove($myItem->getRow(), $myItem->getColumn());
            }
        }

        return $this;
    }
825373
public function addItem(ItemInterface $item)
    {
        if ($this->hasItem($item->getId()) === true) {
            throw new \RuntimeException(sprintf('A previous item exists with the same id: "%s".', $item->getId()));
        }

        $this->items[$item->getId()] = $item;
    }
94950
public function addItem(ItemInterface $item): WishlistInterface
    {
        $item->setWishlist($this);
        $this->items->add($item);

        return $this;
    }
1203840
public function addItem(ItemInterface $item)
    {
        $this->itemsChanged = true;
        $this->entity->addItem($item);

        return $this;
    }
54456
public function remove(Item $item): void
    {
        foreach ($this->list as $key => $itemToCheck) {
            if ($itemToCheck === $item) {
                unset($this->list[$key]);
                break;
            }
        }
    }
1345350
public function delete(EventInterface $event) {
        $event->getManager()->trigger('db.metadata.delete');
        $event->getResponse()->setModel(new Model\Metadata());
    }