Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function updateCMSFields(FieldList $fields) |
||
31 | { |
||
32 | |||
33 | // configuration |
||
34 | $tab = 'Root.SEO'; |
||
35 | |||
36 | // author |
||
37 | $fields->addFieldsToTab($tab, array( |
||
38 | TextField::create('FacebookProfileID', 'Facebook Profile ID') // @todo validation |
||
39 | )); |
||
40 | |||
41 | // remove FacebookAdmin from user profile |
||
42 | $fields->removeByName('FacebookAdminID'); |
||
43 | |||
44 | } |
||
45 | |||
47 |
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.