DevKit updates
Fix deprecations
Co-authored-by: Vincent Langlet <vincentlanglet@hotmail.fr>
15 | 15 | ||
16 | 16 | use Doctrine\ORM\Query\Expr\Join; |
|
17 | 17 | use Sonata\AdminBundle\Filter\Model\FilterData; |
|
18 | - | use Sonata\AdminBundle\Form\Type\Filter\DefaultType; |
|
19 | 18 | use Sonata\DoctrineORMAdminBundle\Datagrid\ProxyQueryInterface; |
|
20 | 19 | use Sonata\DoctrineORMAdminBundle\Filter\Filter; |
|
21 | 20 | use Sonata\TranslationBundle\Enum\TranslationFilterMode; |
88 | 87 | ]; |
|
89 | 88 | } |
|
90 | 89 | ||
91 | - | public function getRenderSettings(): array |
|
90 | + | /** |
|
91 | + | * @return array<string, mixed> |
|
92 | + | */ |
|
93 | + | public function getFormOptions(): array |
|
92 | 94 | { |
|
93 | - | return [DefaultType::class, [ |
|
95 | + | return [ |
|
94 | 96 | 'field_type' => $this->getFieldType(), |
|
95 | 97 | 'field_options' => $this->getFieldOptions(), |
|
96 | 98 | 'operator_type' => $this->getOption('operator_type'), |
|
97 | 99 | 'operator_options' => $this->getOption('operator_options'), |
|
98 | 100 | 'label' => $this->getLabel(), |
|
99 | - | ]]; |
|
101 | + | ]; |
|
100 | 102 | } |
|
101 | 103 | ||
102 | 104 | protected function association(ProxyQueryInterface $query, FilterData $data): array |
Files | Complexity | Coverage |
---|---|---|
src | 110 | 80.79% |
Project Totals (27 files) | 110 | 80.79% |