| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 13 | public function updateCMSFields(FieldList $fields) |
||
| 14 | { |
||
| 15 | $fields->renameField('SkipToMainContentAccessKey', _t('AccessKey.SKIP_TO_MAIN_CONTENT_ACCESS_KEY')); |
||
| 16 | $fields->addFieldToTab('Root.FacebookMetadata', new UploadField('FacebookLogo', _t('Facebook.METADATA_LOGO', |
||
| 17 | 'Image that will show in facebook when linking to this site. The image should be a square of minimum size 200px'))); |
||
| 18 | } |
||
| 19 | } |
||
| 20 |
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.