Method | Description | |
---|---|---|
quickAddCategory ( string $name, integer $parent, WellCommerce\Bundle\ShopBundle\Entity\ShopInterface $shop ) : WellCommerce\Bundle\CategoryBundle\Entity\CategoryInterface | Adds a new category | |
sortCategories ( array $items ) | Sorts categories passed in request |
Method | Description | |
---|---|---|
getLocaleSlug ( |
Returns category slug | |
translateCategory ( |
Translates the category |
public quickAddCategory ( string $name, integer $parent, WellCommerce\Bundle\ShopBundle\Entity\ShopInterface $shop ) : WellCommerce\Bundle\CategoryBundle\Entity\CategoryInterface | ||
$name | string | |
$parent | integer | |
$shop | WellCommerce\Bundle\ShopBundle\Entity\ShopInterface | |
return | WellCommerce\Bundle\CategoryBundle\Entity\CategoryInterface |
public sortCategories ( array $items ) | ||
$items | array |
protected translateCategory ( |
||
$locale | ||
$category | ||
$name | string |