| 1 | <?php |
||
| 12 | class ImageSliderItem extends BaseSliderItem { |
||
|
|
|||
| 13 | |||
| 14 | /** |
||
| 15 | * @var array |
||
| 16 | * @config |
||
| 17 | */ |
||
| 18 | private static $has_one = [ |
||
| 19 | 'Picture' => 'Image', |
||
| 20 | ]; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return string |
||
| 24 | */ |
||
| 25 | public function singular_name() { |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | public function plural_name() { |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return \FieldList |
||
| 38 | */ |
||
| 39 | public function getCMSFields() { |
||
| 57 | } |
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.