| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class FormModifier extends AbstractModifier |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @param Form $form |
||
| 12 | * @param array $context |
||
| 13 | * @return object|void |
||
| 14 | */ |
||
| 15 | public function process($form, array $context = array()) |
||
| 16 | { |
||
| 17 | /** @var FormViewFactory $factory */ |
||
| 18 | $factory = $this->container->get(FormViewFactory::class); |
||
| 19 | $form->setForm($factory->create($form)); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function supportsData($data): bool |
||
| 25 | } |
||
| 26 | |||
| 27 | public static function getSubscribedServices(): array |
||
| 34 |