| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function getCMSFields() |
||
| 18 | { |
||
| 19 | $fields = parent::getCMSFields(); |
||
| 20 | |||
| 21 | $fields->push( |
||
| 22 | TextField::create('AccordionTitle') |
||
| 23 | ->setDescription('Title line for the Accordion') |
||
| 24 | ); |
||
| 25 | |||
| 26 | $fields->push( |
||
| 27 | TextareaField::create('AccordionSummary') |
||
| 28 | ->setDescription('Custom Summary for the Accordion') |
||
| 29 | ); |
||
| 30 | |||
| 31 | $fields->push( |
||
| 32 | HTMLEditorField::create('AccordionContent') |
||
| 33 | ->setDescription('Content in the accordion') |
||
| 34 | ->setRows(20) |
||
| 35 | ); |
||
| 36 | |||
| 37 | $this->extend('updateCMSFields', $fields); |
||
| 38 | |||
| 39 | return $fields; |
||
| 40 | } |
||
| 41 | |||
| 67 |
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.