Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function updateCMSFields(FieldList $fields) |
||
16 | { |
||
17 | $tabTitle = _t('CopyrightSiteConfigExtras.PAGE_ELEMENTS', 'Page Elements'); |
||
18 | $fields->addFieldToTab( |
||
19 | 'Root.'.$tabTitle, |
||
20 | $editor = HTMLEditorField::create( |
||
21 | 'CopyrightNotice', |
||
22 | _t('CopyrightSiteConfigExtras.COPYRIGHT', 'COPYRIGHT') |
||
23 | ) |
||
24 | ); |
||
25 | $editor->setRows(4); |
||
26 | |||
27 | return $fields; |
||
28 | } |
||
29 | } |
||
30 |
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.