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
ProductCategoryInterface
setMain
Sonata\Component\Product\ProductCategoryInterface::setMain PHP Method
ProductCategoryInterface Interface Documentation
Show file
Open project: sonata-project/ecommerce
setMain()
public
method
Set if product category is the main category.
public
setMain
(
boolean
$main
)
$main
boolean
public function setMain($main);
ProductCategoryInterface
getCategory
getCreatedAt
getEnabled
getMain
getProduct
getUpdatedAt
setCategory
setCreatedAt
setEnabled
setMain
setProduct
setUpdatedAt