| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function createNamedBuilder($name, $data = null, array $options = []) |
||
| 17 | { |
||
| 18 | /** @var \Symfony\Component\Form\FormFactoryInterface $factory */ |
||
| 19 | $factory = $this->container->get('form.factory'); |
||
|
|
|||
| 20 | |||
| 21 | $defaults = ['action' => '#']; |
||
| 22 | |||
| 23 | return $factory->createNamedBuilder($name, FormType::class, $data, array_merge($defaults, $options)); |
||
| 24 | } |
||
| 26 |