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(); }