Sonata\ProductBundle\Model\BaseProductProvider::createBasketElement PHP Метод

createBasketElement() публичный Метод

(non-PHPdoc).
См. также: Sonata\Component\Product\ProductProviderInterface::createBasketElement()
public createBasketElement ( Sonata\Component\Product\ProductInterface $product = null, array $options = [] )
$product Sonata\Component\Product\ProductInterface
$options array
    public function createBasketElement(ProductInterface $product = null, array $options = array())
    {
        $basketElement = $this->getBasketElementManager()->create();
        $this->buildBasketElement($basketElement, $product, $options);
        return $basketElement;
    }