@@ -110,11 +110,11 @@ discard block |
||
| 110 | 110 | { |
| 111 | 111 | $labels = parent::fieldLabels($includerelations); |
| 112 | 112 | |
| 113 | - $labels['Title'] = _t(__CLASS__ . '.TitleLabel', 'Title'); |
|
| 114 | - $labels['ElementLinkID'] = _t(__CLASS__ . '.LinkLabel', 'Link'); |
|
| 115 | - $labels['Image'] = _t(__CLASS__ . '.ImageLabel', 'Image'); |
|
| 116 | - $labels['Image.CMSThumbnail'] = _t(__CLASS__ . '.ImageLabel', 'Image'); |
|
| 117 | - $labels['Content'] = _t(__CLASS__. '.ContentLabel', 'Content'); |
|
| 113 | + $labels['Title'] = _t(__CLASS__.'.TitleLabel', 'Title'); |
|
| 114 | + $labels['ElementLinkID'] = _t(__CLASS__.'.LinkLabel', 'Link'); |
|
| 115 | + $labels['Image'] = _t(__CLASS__.'.ImageLabel', 'Image'); |
|
| 116 | + $labels['Image.CMSThumbnail'] = _t(__CLASS__.'.ImageLabel', 'Image'); |
|
| 117 | + $labels['Content'] = _t(__CLASS__.'.ContentLabel', 'Content'); |
|
| 118 | 118 | |
| 119 | 119 | return $labels; |
| 120 | 120 | } |
@@ -126,12 +126,12 @@ discard block |
||
| 126 | 126 | */ |
| 127 | 127 | public function getCMSFields() |
| 128 | 128 | { |
| 129 | - $this->beforeUpdateCMSFields(function ($fields) { |
|
| 129 | + $this->beforeUpdateCMSFields(function($fields) { |
|
| 130 | 130 | /** @var FieldList $fields */ |
| 131 | 131 | $fields->replaceField( |
| 132 | 132 | 'ElementLinkID', |
| 133 | 133 | LinkField::create('ElementLink', $this->fieldLabel('Link'), $this) |
| 134 | - ->setDescription(_t(__CLASS__ . '.LinkLabel', 'optional. Add a call to action link.')) |
|
| 134 | + ->setDescription(_t(__CLASS__.'.LinkLabel', 'optional. Add a call to action link.')) |
|
| 135 | 135 | ); |
| 136 | 136 | $fields->insertBefore($fields->dataFieldByName('ElementLink'), 'Content'); |
| 137 | 137 | |