Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function getColumnContent($field, $record, $col) |
||
13 | { |
||
14 | if ($record->isLatestVersion()) { |
||
15 | return null; |
||
16 | } |
||
17 | |||
18 | $data = new ArrayData(array( |
||
19 | 'Link' => Controller::join_links($field->Link('item'), $record->ID, 'view?VersionID='. $record->Version) |
||
20 | )); |
||
21 | |||
22 | $template = SSViewer::get_templates_by_class($this, '', GridFieldViewButton::class); |
||
23 | |||
24 | return $data->renderWith($template); |
||
25 | } |
||
27 |