Conditions | 3 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
33 | protected function initFormField() |
||
34 | { |
||
35 | $label = $this->Title ? "<label class='left'>$this->Title</label>" : ''; |
||
36 | $classes = $this->Title ? '' : ' nolabel'; |
||
37 | |||
38 | return new LiteralField("LiteralField[$this->ID]", "<div id='$this->Name' class='field text$classes'> |
||
39 | $label |
||
40 | <div class='middleColumn literalFieldArea'>" . $this->getSetting('Content') . '</div>' . |
||
41 | '</div>' |
||
42 | ); |
||
43 | } |
||
44 | } |
||
45 |