Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function updateCMSFields(FieldList $fields) |
||
32 | { |
||
33 | |||
34 | // owner |
||
35 | $owner = $this->owner; |
||
36 | |||
37 | //// Facebook Insights |
||
38 | |||
39 | // tab |
||
40 | $tab = 'Root.Metadata.FacebookDomainInsights'; |
||
41 | |||
42 | // add fields |
||
43 | $fields->addFieldsToTab($tab, array( |
||
44 | TextField::create('FacebookAppID', 'Facebook Application ID'), // @todo validation |
||
45 | GridField::create('FacebookAdmins', 'Facebook Administrators', $owner->FacebookAdmins()) |
||
46 | ->setConfig(GridFieldConfig_RelationEditor::create()) |
||
47 | )); |
||
48 | |||
49 | } |
||
50 | |||
52 |
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.