| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 16 | 
| Code Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 18 | 'Parent' => DataObject::class, | ||
| 19 | ]; | ||
| 20 | |||
| 21 | public function getCMSFields() | ||
| 22 |     { | ||
| 23 | $fields = parent::getCMSFields(); | ||
| 24 | $fields->addFieldToTab( | ||
| 25 | 'Root.Main', | ||
| 26 | ImageCoordField::create( | ||
| 27 | $name = 'DataPointImageCoordinates', | ||
| 28 | $xFieldName = 'XCoordinate', | ||
| 29 | $yFieldName = 'YCoordinate', | ||
| 30 | $imageURL = $this->Parent()->DataPointImage()->Link(), | ||
|  | |||
| 31 | $width = $this->Parent()->DataPointImage()->getWidth(), | ||
| 32 | $height = $this->Parent()->DataPointImage()->getHeight(), | ||
| 33 | $cssGrid = true | ||
| 34 | ) | ||
| 39 |