Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace VojtaSvoboda\Brands\Controllers; |
||
33 | public function listOverrideColumnValue($record, $columnName, $definition = null) |
||
34 | { |
||
35 | if ($columnName == 'brands_count') { |
||
36 | $link = Backend::url('vojtasvoboda/brands/brands?category=' . $record->id); |
||
37 | |||
38 | return '<a class="btn btn-xs btn-primary" href="' . $link . '">' . $record->brands_count . '</a>'; |
||
39 | } |
||
40 | } |
||
41 | } |
||
42 |