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
Elcodi
Component
Product
Entity
Product
getPrincipalVariant
Elcodi\Component\Product\Entity\Product::getPrincipalVariant PHP Method
Product Class Documentation
Show file
Open project: elcodi/elcodi
getPrincipalVariant()
public
method
Returns product principal variant.
public
getPrincipalVariant
( ) :
Elcodi\Component\Product\Entity\Interfaces\VariantInterface
return
Elcodi\Component\Product\Entity\Interfaces\VariantInterface
public function getPrincipalVariant() { return $this->principalVariant; }
Product
addAttribute
addCategory
addVariant
getAttributes
getPrincipalVariant
getPurchasableType
getType
getVariants
hasVariants
removeAttribute
removeCategory
setAttributes
setCategories
setManufacturer
setPrincipalCategory
setPrincipalVariant
setType
setVariants