/** * {@inheritdoc} */ public function create($pollId) { $type = $this->formFactory->getType($this->type); $type->setPollFields($pollId); $builder = $this->formFactory->createNamedBuilder(sprintf('%s_%s', $this->name, $pollId), $type); return $builder->getForm(); }
/** * {@inheritdoc} */ public function create($id) { $type = $this->formFactory->getType($this->type); $type->setId($id); $builder = $this->formFactory->createNamedBuilder($type, sprintf('%s_%s', $this->name, $id)); return $builder->getForm(); }