Sonata\ProductBundle\Twig\Extension\ProductExtension::getCheapestEnabledVariationPrice PHP Method

getCheapestEnabledVariationPrice() public method

Return the cheapest variation price of the product (or itself if none).
public getCheapestEnabledVariationPrice ( Sonata\Component\Product\ProductInterface $product ) : Sonata\Component\Product\ProductInterface
$product Sonata\Component\Product\ProductInterface
return Sonata\Component\Product\ProductInterface
    public function getCheapestEnabledVariationPrice(ProductInterface $product)
    {
        return $this->productPool->getProvider($product)->getCheapestEnabledVariation($product)->getPrice();
    }