1 | <?php |
||
14 | class ElementVirtualLinked extends BaseElement { |
||
|
|||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private static $title = 'Virtual linked Block'; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private static $singular_name = 'Virtual linked Block'; |
||
24 | |||
25 | private static $has_one = array( |
||
26 | 'LinkedElement' => 'BaseElement' |
||
27 | ); |
||
28 | |||
29 | public function getTitle() |
||
33 | |||
34 | public function i18n_singular_name() |
||
38 | |||
39 | public function getCMSFields() { |
||
57 | |||
58 | public function getExtraClass() { |
||
61 | } |
||
62 |
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.