| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | public function getCMSFields() |
||
| 43 | { |
||
| 44 | $this->beforeUpdateCMSFields(function (FieldList $fields) { |
||
| 45 | $fields->removeByName(['VideoID']); |
||
| 46 | $fields->addFieldToTab( |
||
| 47 | 'Root.Main', |
||
| 48 | EmbeddedObjectField::create('Video', 'Video', $this->Video()), |
||
| 49 | 'Content' |
||
| 50 | ); |
||
| 51 | }); |
||
| 52 | |||
| 53 | return parent::getCMSFields(); |
||
| 54 | } |
||
| 56 |