| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | protected function initForm(FormFactoryInterface $factory, $data = null): FormInterface |
||
| 38 | { |
||
| 39 | $builder = $factory->createNamedBuilder( |
||
| 40 | 'dto_form', |
||
| 41 | FormType::class, |
||
| 42 | $data, |
||
| 43 | ['data_class' => $this->getClassName()] |
||
| 44 | ); |
||
| 45 | |||
| 46 | $builder->add( |
||
| 47 | 'email', |
||
| 48 | EmailType::class, |
||
| 49 | ['label' => 'admin.email'] |
||
| 50 | ); |
||
| 51 | |||
| 52 | return $builder->getForm(); |
||
| 53 | } |
||
| 54 | } |
||
| 55 |