Elcodi\Admin\ProductBundle\Controller\Component\VariantComponentController::editComponentAction PHP Метод

editComponentAction() публичный Метод

As a component, this action should not return all the html macro, but only the specific component
public editComponentAction ( Symfony\Component\Form\FormView $formView, Elcodi\Component\Product\Entity\Interfaces\ProductInterface $product, Elcodi\Component\Product\Entity\Interfaces\VariantInterface $variant ) : array
$formView Symfony\Component\Form\FormView Form view
$product Elcodi\Component\Product\Entity\Interfaces\ProductInterface Product
$variant Elcodi\Component\Product\Entity\Interfaces\VariantInterface Variant
Результат array Result
    public function editComponentAction(FormView $formView, ProductInterface $product, VariantInterface $variant)
    {
        $useStock = $this->get('elcodi.store')->getUseStock();
        return ['variant' => $variant, 'product' => $product, 'form' => $formView, 'useStock' => $useStock];
    }