1 | <?php |
||
4 | class GridFieldExtraColumns implements GridField_ColumnProvider |
||
|
|||
5 | { |
||
6 | protected $field = ''; |
||
7 | |||
8 | public function __construct($field) |
||
12 | |||
13 | public function augmentColumns($gridField, &$columns) |
||
17 | |||
18 | public function getColumnAttributes($gridField, $record, $columnName) |
||
28 | |||
29 | public function getColumnContent($gridField, $record, $columnName) |
||
36 | |||
37 | public function getColumnMetadata($gridField, $columnName) |
||
41 | |||
42 | public function getColumnsHandled($gridField) |
||
54 | } |
||
55 |
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.