14
14
namespace Sonata \DoctrineMongoDBAdminBundle \Filter ;
15
15
16
16
use Sonata \AdminBundle \Filter \Model \FilterData ;
17
- use Sonata \AdminBundle \Form \Type \Filter \DefaultType ;
18
17
use Sonata \DoctrineMongoDBAdminBundle \Datagrid \ProxyQueryInterface ;
19
18
use Symfony \Component \Form \Extension \Core \Type \HiddenType ;
20
19
use Symfony \Component \Form \Extension \Core \Type \TextType ;
@@ -31,15 +30,18 @@ public function getDefaultOptions(): array
31
30
];
32
31
}
33
32
34
- public function getRenderSettings (): array
33
+ /**
34
+ * @return array<string, mixed>
35
+ */
36
+ public function getFormOptions (): array
35
37
{
36
- return [DefaultType::class, [
37
- 'field_type ' => $ this ->getFieldType (),
38
- 'field_options ' => $ this ->getFieldOptions (),
39
- 'operator_type ' => $ this ->getOption ('operator_type ' ),
40
- 'operator_options ' => $ this ->getOption ('operator_options ' ),
41
- 'label ' => $ this ->getLabel (),
42
- ]] ;
38
+ return [
39
+ 'field_type ' => $ this ->getFieldType (),
40
+ 'field_options ' => $ this ->getFieldOptions (),
41
+ 'operator_type ' => $ this ->getOption ('operator_type ' ),
42
+ 'operator_options ' => $ this ->getOption ('operator_options ' ),
43
+ 'label ' => $ this ->getLabel (),
44
+ ];
43
45
}
44
46
45
47
protected function filter (ProxyQueryInterface $ query , string $ field , FilterData $ data ): void
0 commit comments