1 | <?php |
||
9 | class CallToActionPageExtension extends DataExtension |
||
|
|||
10 | { |
||
11 | private static $has_one = [ |
||
12 | 'CallToAction' => 'CallToAction' |
||
13 | ]; |
||
14 | |||
15 | private static $field_labels = [ |
||
16 | 'CallToAction' => 'Call to action' |
||
17 | ]; |
||
18 | |||
19 | private static $field_labels_right = [ |
||
20 | 'CallToAction' => 'Big image with optional text' |
||
21 | ]; |
||
22 | |||
23 | public function updateCMSFields(FieldList $fields) |
||
48 | } |
||
49 |
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.