| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | public function getCMSFields() |
||
| 48 | { |
||
| 49 | $fields = parent::getCMSFields(); |
||
| 50 | $fields->removeByName("ParentPageID"); |
||
| 51 | $fields->removeByName("ParentID"); |
||
| 52 | $fields->addFieldToTab("Root.Main", new TreeDropdownField($name = "ParentPageID", $title = "Parent Page (show all child pages as links for this recommended section)", $sourceObject = "SiteTree")); |
||
| 53 | return $fields; |
||
| 54 | } |
||
| 55 | |||
| 68 |
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.