Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function updateCMSFields(FieldList $fields) |
||
17 | { |
||
18 | $config = GridFieldConfig_RecordEditor::create(); |
||
19 | $config |
||
20 | ->removeComponentsByType(GridFieldAddNewButton::class) |
||
21 | ->addComponent(new GridFieldAddNewMultiClass()); |
||
22 | |||
23 | $fields->addFieldToTab( |
||
24 | 'Root.Notifications', |
||
25 | GridField::create( |
||
26 | 'Notifications', |
||
27 | '', |
||
28 | Notification::get(), |
||
29 | $config |
||
30 | ) |
||
34 |