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

renderAttributesAction() public method

public renderAttributesAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response
    public function renderAttributesAction(Request $request)
    {
        $template = $request->attributes->get('template', 'SyliusAttributeBundle::attributeChoice.html.twig');
        $form = $this->get('form.factory')->create(ProductAttributeChoiceType::class, null, ['multiple' => true]);
        return $this->render($template, ['form' => $form->createView()]);
    }