Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
18 | public function getEditForm($id = null, $fields = null) { |
||
19 | $form = parent::getEditForm($id, $fields); |
||
20 | |||
21 | $grid = $form->Fields() |
||
22 | ->dataFieldByName($this->sanitiseClassName($this->modelClass)); |
||
23 | |||
24 | $grid->getConfig()->removeComponentsByType('GridFieldAddNewButton'); |
||
25 | |||
26 | return $form; |
||
27 | } |
||
28 | |||
41 |
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.