Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Sonata
Component
Product
ProductProviderInterface
getVariationsChoices
Sonata\Component\Product\ProductProviderInterface::getVariationsChoices PHP Method
ProductProviderInterface Interface Documentation
Show file
Open project: sonata-project/ecommerce
getVariationsChoices()
public
method
Gets the possible values for $fields (or variation fields if not set).
public
getVariationsChoices
(
Sonata\Component\Product\ProductInterface
$product
,
array
$fields
= [] ) :
array
$product
Sonata\Component\Product\ProductInterface
$fields
array
return
array
public function getVariationsChoices(ProductInterface $product, array $fields = array());
ProductProviderInterface
basketAddProduct
basketMergeProduct
buildBasketElement
buildCreateForm
buildEditForm
buildForm
calculatePrice
configureShowFields
createBasketElement
createVariation
defineAddBasketForm
defineBasketElementForm
getBaseControllerName
getBasketElementManager
getCheapestEnabledVariation
getEnabledVariations
getFilters
getProductCategoryManager
getProductCollectionManager
getStockAvailable
getVariatedProperties
getVariation
getVariationsChoices
hasEnabledVariations
hasVariations
isAddableToBasket
isValidBasketElement
setBasketElementManager
setProductCategoryManager
setProductCollectionManager
synchronizeVariations
synchronizeVariationsCategories
synchronizeVariationsCollections
synchronizeVariationsDeliveries
synchronizeVariationsPackages
synchronizeVariationsProduct
updateComputationPricesFields
updateStock
validateFormBasketElement