1 | <?php |
||
10 | class SliderBlock extends BaseBlock { |
||
|
|||
11 | |||
12 | /** |
||
13 | * @var array |
||
14 | * @config |
||
15 | */ |
||
16 | private static $has_many = [ |
||
1 ignored issue
–
show
|
|||
17 | 'Sliders' => 'BaseSliderItem', |
||
18 | ]; |
||
19 | |||
20 | /** |
||
21 | * @return string |
||
22 | */ |
||
23 | public function singular_name() { |
||
26 | |||
27 | /** |
||
28 | * @return string |
||
29 | */ |
||
30 | public function plural_name() { |
||
33 | |||
34 | /** |
||
35 | * @return \FieldList |
||
36 | */ |
||
37 | public function getCMSFields() { |
||
53 | |||
54 | /** |
||
55 | * @return GridField |
||
56 | */ |
||
57 | protected function createSliderGridField() { |
||
88 | |||
89 | /** |
||
90 | * Get slider types which are sub classes for BaseSliderItem |
||
91 | * |
||
92 | * @return array |
||
93 | */ |
||
94 | public function getSliderClasses() { |
||
103 | } |
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.