@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | public function getCMSFields() |
47 | 47 | { |
48 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
48 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
49 | 49 | $resource = $this->DataResource(); |
50 | 50 | |
51 | 51 | $fields->addFieldToTab( |
@@ -76,11 +76,11 @@ discard block |
||
76 | 76 | $columns = $component->getDisplayFields($resourceFields); |
77 | 77 | |
78 | 78 | // We only want to change the labels for the GridField view, not the model's edit form |
79 | - $columns['ShowInSummaryView'] = _t(__CLASS__ . '.IN_RESULTS', 'In Results'); |
|
80 | - $columns['ShowInDetailView'] = _t(__CLASS__ . '.IN_DETAIL', 'In Detail'); |
|
79 | + $columns['ShowInSummaryView'] = _t(__CLASS__.'.IN_RESULTS', 'In Results'); |
|
80 | + $columns['ShowInDetailView'] = _t(__CLASS__.'.IN_DETAIL', 'In Detail'); |
|
81 | 81 | |
82 | 82 | // Abbreviate the position title |
83 | - $columns['Position'] = _t(__CLASS__ . '.POS', 'Pos.', 'Abbreviated version of position'); |
|
83 | + $columns['Position'] = _t(__CLASS__.'.POS', 'Pos.', 'Abbreviated version of position'); |
|
84 | 84 | |
85 | 85 | $editable = array_flip(['ShowInSummaryView', 'ShowInDetailView']); |
86 | 86 | $component->setDisplayFields(array_diff_key($columns, $editable)); |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | $fields = parent::getSettingsFields(); |
116 | 116 | |
117 | 117 | $fields->addFieldsToTab('Root.Settings', [ |
118 | - TextField::create('ItemsPerPage', _t(__CLASS__ . '.ITEMS_PER_PAGE', 'Items per page')), |
|
118 | + TextField::create('ItemsPerPage', _t(__CLASS__.'.ITEMS_PER_PAGE', 'Items per page')), |
|
119 | 119 | ]); |
120 | 120 | |
121 | 121 | return $fields; |