| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function updateCMSFields(FieldList $fields) |
||
| 13 | { |
||
| 14 | $fields->addFieldsToTab( |
||
| 15 | "Root.Newsletter", |
||
| 16 | array( |
||
| 17 | new TextField("MailchimpSignupHeader", _t("EcommerceMailchimpSignup.HEADER", "Header")), |
||
| 18 | new TextField("MailchimpSignupIntro", _t("EcommerceMailchimpSignup.INTRO", "Intro")), |
||
| 19 | new TextField("MailchimpSignupLabel", _t("EcommerceMailchimpSignup.LABEL", "Label")) |
||
| 20 | ) |
||
| 21 | ); |
||
| 22 | } |
||
| 23 | } |
||
| 24 |
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.