| Conditions | 2 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function updateColumns(&$columns) |
||
| 15 | { |
||
| 16 | $columns['AvailableVersion'] = [ |
||
| 17 | 'title' => _t(__CLASS__ . '.AVAILABLE', 'Available'), |
||
| 18 | // If the available version update is the same as the currently installed version, don't show it |
||
| 19 | 'formatting' => function ($value, $item) { |
||
| 20 | if ($value === $item->Version) { |
||
| 21 | return ''; |
||
| 22 | } |
||
| 23 | return $value; |
||
| 24 | }, |
||
| 25 | ]; |
||
| 26 | |||
| 27 | $columns['LatestVersion'] = [ |
||
| 28 | 'title' => _t(__CLASS__ . '.LATEST', 'Latest') |
||
| 29 | ]; |
||
| 30 | } |
||
| 31 | } |
||
| 32 |