WellCommerce\Bundle\ProductBundle\Helper\VariantHelperInterface::getVariantOptions PHP Method

getVariantOptions() public method

public getVariantOptions ( WellCommerce\Bundle\ProductBundle\Entity\VariantInterface $variant ) : array
$variant WellCommerce\Bundle\ProductBundle\Entity\VariantInterface
return array
    public function getVariantOptions(VariantInterface $variant) : array;

Usage Example

 private function refreshOrderProductVariantOptions(OrderProductInterface $orderProduct)
 {
     if ($orderProduct->hasVariant()) {
         $options = $this->variantHelper->getVariantOptions($orderProduct->getVariant());
         $orderProduct->setOptions($options);
     }
 }