| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function __construct($itemsPerPage = null) |
||
| 11 | { |
||
| 12 | parent::__construct($itemsPerPage); |
||
| 13 | $this |
||
| 14 | ->removeComponentsByType('GridFieldDeleteAction') |
||
| 15 | ->removeComponentsByType('GridFieldAddNewButton') |
||
| 16 | ->removeComponentsByType('GridFieldAddNewButtonOriginalPage') |
||
| 17 | ->addComponent(new GridFieldAddNewButtonOriginalPageSecondHandProduct()); |
||
| 18 | } |
||
| 19 | } |
||
| 20 |
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.