@@ -33,13 +33,13 @@ |
||
| 33 | 33 | ->setAllowedTypes('resource', ResourceInterface::class) |
| 34 | 34 | ->setAllowedTypes('factory', FactoryInterface::class) |
| 35 | 35 | ->setDefaults([ |
| 36 | - 'data_class' => function (Options $options) { |
|
| 36 | + 'data_class' => function(Options $options) { |
|
| 37 | 37 | return $options['resource']->getModel(); |
| 38 | 38 | }, |
| 39 | - 'label_prefix' => function (Options $options) { |
|
| 39 | + 'label_prefix' => function(Options $options) { |
|
| 40 | 40 | return 'lug.'.$options['resource']->getName(); |
| 41 | 41 | }, |
| 42 | - 'empty_data' => function (FormInterface $form) { |
|
| 42 | + 'empty_data' => function(FormInterface $form) { |
|
| 43 | 43 | return $form->isRequired() || !$form->isEmpty() |
| 44 | 44 | ? $form->getConfig()->getOption('factory')->create() |
| 45 | 45 | : null; |