Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
9 | class BooleanField extends AbstractField implements TwigAwareFieldInterface |
||
10 | { |
||
11 | use TwigAwareTrait; |
||
12 | |||
13 | public function isSortable(): bool |
||
14 | { |
||
15 | return true; |
||
16 | } |
||
17 | |||
18 | public function configureOptions(OptionsResolver $resolver, ActionConfiguration $actionConfiguration) |
||
19 | { |
||
20 | $resolver->setDefaults([ |
||
21 | 'template' => '@LAGAdmin/Field/boolean.html.twig', |
||
22 | ]); |
||
23 | } |
||
24 | |||
25 | public function render($value = null): string |
||
29 | ]); |
||
30 | } |
||
31 | } |
||
32 |