getPosition() public method

return the pos of the current basket element.
public getPosition ( ) : integer
return integer
Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function removeBasketElement(BasketElementInterface $element)
 {
     $pos = $element->getPosition();
     $this->cptElement--;
     unset($this->positions[$element->getProduct()->getId()], $this->basketElements[$pos]);
     if (!$this->inBuild) {
         $this->buildPrices();
     }
     return $element;
 }