Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | final class ProductAutocompleteChoiceType extends AbstractType |
||
14 | { |
||
15 | public function configureOptions(OptionsResolver $resolver): void |
||
16 | { |
||
17 | $resolver |
||
18 | ->setRequired([ |
||
19 | 'remote_url', |
||
20 | ]) |
||
21 | ->setDefaults([ |
||
22 | 'resource' => 'sylius.product', |
||
23 | 'choice_value' => 'id', |
||
24 | ]) |
||
25 | ; |
||
26 | } |
||
27 | |||
28 | public function buildView(FormView $view, FormInterface $form, array $options): void |
||
33 | } |
||
34 | |||
35 | public function getBlockPrefix(): string |
||
36 | { |
||
37 | return 'odiseo_product_autocomplete_choice'; |
||
38 | } |
||
39 | |||
40 | public function getParent(): string |
||
43 | } |
||
44 | } |
||
45 |