Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 11 |
Ratio | 100 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | View Code Duplication | public function getCMSFields() |
|
12 | { |
||
13 | $fields = parent::getCMSFields(); |
||
14 | |||
15 | $conf = GridFieldConfig_RecordEditor::create(); |
||
16 | $grid = GridField::create('Explanations', $this->fieldLabel('Explanations'), $this->Explanations(), $conf); |
||
17 | $tabTitle = $this->fieldLabel('Explanations'); |
||
18 | $fields->addFieldsToTab('Root.' . $tabTitle, $grid); |
||
19 | |||
20 | return $fields; |
||
21 | } |
||
22 | } |
||
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.