@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | public function getCMSFields() |
48 | 48 | { |
49 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
49 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
50 | 50 | $resource = $this->DataResource(); |
51 | 51 | |
52 | 52 | $fields->addFieldToTab( |
@@ -89,11 +89,11 @@ discard block |
||
89 | 89 | $columns = $component->getDisplayFields($resourceFields); |
90 | 90 | |
91 | 91 | // We only want to change the labels for the GridField view, not the model's edit form |
92 | - $columns['ShowInResultsView'] = _t(__CLASS__ . '.IN_RESULTS', 'In Results'); |
|
93 | - $columns['ShowInDetailView'] = _t(__CLASS__ . '.IN_DETAIL', 'In Detail'); |
|
92 | + $columns['ShowInResultsView'] = _t(__CLASS__.'.IN_RESULTS', 'In Results'); |
|
93 | + $columns['ShowInDetailView'] = _t(__CLASS__.'.IN_DETAIL', 'In Detail'); |
|
94 | 94 | |
95 | 95 | // Abbreviate the position title |
96 | - $columns['Position'] = _t(__CLASS__ . '.POS', 'Pos.', 'Abbreviated version of position'); |
|
96 | + $columns['Position'] = _t(__CLASS__.'.POS', 'Pos.', 'Abbreviated version of position'); |
|
97 | 97 | |
98 | 98 | $editable = array_flip(['ShowInResultsView', 'ShowInDetailView']); |
99 | 99 | $component->setDisplayFields(array_diff_key($columns, $editable)); |