Method | Description | |
---|---|---|
deleteAction ( |
Delete element action | |
disableAction ( |
Disable entity | |
editAction ( Symfony\Component\Form\FormInterface $form, Elcodi\Component\Product\Entity\Interfaces\ProductInterface $product, Elcodi\Component\Product\Entity\Interfaces\VariantInterface $variant, boolean $isValid ) : |
Edit and Saves product | |
enableAction ( |
Enable entity |
Method | Description | |
---|---|---|
getUniqueAttributesFromVariant ( Elcodi\Component\Product\Entity\Interfaces\VariantInterface $variant ) : array | Given a Variant, return a list of the associated Attributes |
public deleteAction ( |
||
$request | Request | |
$variant | mixed | Variant to delete |
$redirectPath | string | Redirect path |
return | Redirect response |
public disableAction ( |
||
$request | Request | |
$entity | Elcodi\Component\Core\Entity\Interfaces\EnabledInterface | Entity to disable |
return | array | Result |
public editAction ( Symfony\Component\Form\FormInterface $form, Elcodi\Component\Product\Entity\Interfaces\ProductInterface $product, Elcodi\Component\Product\Entity\Interfaces\VariantInterface $variant, boolean $isValid ) : |
||
$form | Symfony\Component\Form\FormInterface | Form |
$product | Elcodi\Component\Product\Entity\Interfaces\ProductInterface | Product |
$variant | Elcodi\Component\Product\Entity\Interfaces\VariantInterface | Variant |
$isValid | boolean | Is valid |
return | Redirect response |
public enableAction ( |
||
$request | Request | |
$variant | Elcodi\Component\Core\Entity\Interfaces\EnabledInterface | Product variant to enable |
return | array | Result |
protected getUniqueAttributesFromVariant ( Elcodi\Component\Product\Entity\Interfaces\VariantInterface $variant ) : array | ||
$variant | Elcodi\Component\Product\Entity\Interfaces\VariantInterface | |
return | array |