| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function getCMSFields() { |
||
| 31 | $message = sprintf('<p>%s</p><p><a href="%2$s">%2$s</a></p>', |
||
| 32 | _t('ElementVirtualLinked.DESCRIBE', 'This is a virtual copy of a block. To edit, visit'), |
||
| 33 | $this->LinkedElement()->getEditLink() |
||
| 34 | ); |
||
| 35 | |||
| 36 | $fields = new FieldList( |
||
| 37 | new LiteralField('Existing', $message) |
||
| 38 | ); |
||
| 39 | |||
| 40 | $this->extend('updateCMSFields', $fields); |
||
| 41 | |||
| 42 | return $fields; |
||
| 43 | } |
||
| 44 | } |
||
| 45 |
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.