Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function getColumnContent($gridField, $record, $columnName) |
||
14 | { |
||
15 | $data = new ArrayData(array( |
||
16 | 'Link' => Controller::join_links($gridField->Link('item'), $record->ID, 'edit') |
||
17 | )); |
||
18 | $template = $record->canEdit() ? 'GridFieldEditButton' : 'GridFieldViewButton'; |
||
19 | return $data->renderWith($template); |
||
20 | } |
||
21 | } |
||
22 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.