| Conditions | 2 |
| Paths | 2 |
| Total Lines | 21 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function updateCMSFields(FieldList $fields) |
||
| 27 | { |
||
| 28 | if ($integrations = $fields->dataFieldByName('Integrations')) { |
||
| 29 | $fields->removeByName('Integrations'); |
||
| 30 | |||
| 31 | $config = $integrations->getConfig(); |
||
| 32 | $config |
||
| 33 | ->removeComponentsByType([ |
||
| 34 | GridFieldAddExistingAutocompleter::class |
||
| 35 | ]); |
||
| 36 | |||
| 37 | |||
| 38 | $fields->addFieldsToTab('Root.Integrations', array( |
||
| 39 | HeaderField::create('IntegrationsHeader', 'Foxy Integrations', 3), |
||
| 40 | LiteralField::create( |
||
| 41 | 'IntegrationsDescip', |
||
| 42 | '<p>Push your Foxy.io datafeed to additional URLs for processing. This allows your |
||
| 43 | datafeed to be used by additional applications, such as |
||
| 44 | <a href="http://foxytools.com/orderdesk/" target="_blank">OrderDesk</a>.</p>' |
||
| 45 | ), |
||
| 46 | $integrations |
||
| 47 | )); |
||
| 51 |