| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | protected function getFormFields($controller, $name, $context) |
||
| 18 | { |
||
| 19 | $fields = FieldList::create([ |
||
| 20 | TreeDropdownField::create( |
||
| 21 | 'PageID', |
||
| 22 | _t(__CLASS__.'.SELECT_PAGE', 'Select a page'), |
||
| 23 | SiteTree::class, |
||
| 24 | 'ID', |
||
| 25 | 'TreeTitle' |
||
| 26 | ), |
||
| 27 | TextField::create( |
||
| 28 | 'Description', |
||
| 29 | _t(__CLASS__.'.LINKDESCR', 'Link description') |
||
| 30 | ), |
||
| 31 | TextField::create('Anchor', _t(__CLASS__.'.ANCHORVALUE', 'Anchor')), |
||
| 32 | CheckboxField::create( |
||
| 33 | 'TargetBlank', |
||
| 34 | _t(__CLASS__.'.LINKOPENNEWWIN', 'Open in new window/tab') |
||
| 35 | ), |
||
| 36 | ]); |
||
| 37 | |||
| 38 | return $fields; |
||
| 39 | } |
||
| 40 | } |
||
| 41 |