Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | public function updateItemEditForm($form) { |
||
6 | if ($this->owner->record->hasMethod('Link')) { |
||
7 | $link = sprintf( |
||
8 | '<a style="margin: 0.5em" target="deploynaut-frontend" href="%s">Preview »</a>', |
||
9 | $this->owner->record->Link() |
||
10 | ); |
||
11 | $actions = $form->Actions(); |
||
12 | $actions->push(LiteralField::create('FrontendLink', $link)); |
||
13 | } |
||
14 | } |
||
15 | |||
18 |