Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 13 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
45 | View Code Duplication | public function getRolesFormParams() |
|
46 | { |
||
47 | return [ |
||
48 | 'type' => ChoiceType::class, |
||
49 | 'options' => [ |
||
50 | 'choices' => $this->getAllAvailableRoles($this->roleHierarchy), |
||
51 | 'choices_as_values' => true, |
||
52 | 'choice_label' => function ($value) { |
||
53 | return $value; |
||
54 | }, |
||
55 | ], |
||
56 | ]; |
||
57 | } |
||
58 | |||
84 |