Sylius\Bundle\ProductBundle\Controller\ProductAttributeController::getAttributeForm PHP Method

getAttributeForm() protected method

protected getAttributeForm ( Sylius\Component\Attribute\Model\AttributeInterface $attribute ) : Symfony\Component\Form\FormView
$attribute Sylius\Component\Attribute\Model\AttributeInterface
return Symfony\Component\Form\FormView
    protected function getAttributeForm(AttributeInterface $attribute)
    {
        $attributeForm = $this->get('sylius.form_registry.attribute_type')->get($attribute->getType(), 'default');
        $form = $this->get('form.factory')->createNamed('value', $attributeForm, null, ['label' => $attribute->getName()]);
        return $form->createView();
    }