Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public function getCMSFields() { |
||
40 | $message = sprintf('<p>%s</p><p><a href="%2$s">%2$s</a></p>', |
||
41 | _t('ElementVirtualLinked.DESCRIBE', 'This is a virtual copy of a block. To edit, visit'), |
||
42 | $this->LinkedElement()->getEditLink() |
||
43 | ); |
||
44 | |||
45 | $fields = new FieldList( |
||
46 | new TabSet('Root', $main = new Tab('Main')) |
||
47 | ); |
||
48 | |||
49 | $main->push( |
||
50 | new LiteralField('Existing', $message) |
||
51 | ); |
||
52 | |||
53 | $this->extend('updateCMSFields', $fields); |
||
54 | |||
55 | return $fields; |
||
56 | } |
||
57 | |||
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.