Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | protected function getGenerationButtons() |
||
26 | { |
||
27 | $buttons = []; |
||
28 | |||
29 | foreach ($this->suggestionTypesByObject() as $config) { |
||
30 | $buttons[] = [ |
||
31 | 'label' => $config['label'], |
||
32 | 'icon' => $config['icon'], |
||
33 | 'url' => $this->suggestionLink($config['type']), |
||
34 | 'visible' => Yii::$app->user->can('plan.update'), |
||
35 | ]; |
||
36 | } |
||
37 | |||
38 | return $buttons; |
||
39 | } |
||
40 | |||
67 |