Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
39 | public function getFieldConfiguration() |
||
40 | { |
||
41 | $levels = [ |
||
42 | '1' => '1', |
||
43 | '2' => '2', |
||
44 | '3' => '3', |
||
45 | '4' => '4', |
||
46 | '5' => '5', |
||
47 | '6' => '6', |
||
48 | ]; |
||
49 | |||
50 | $level = ($this->getSetting('Level')) ? $this->getSetting('Level') : 3; |
||
51 | $label = _t('Moo_EditableFieldHeading.LEVEL', 'Select Heading Level'); |
||
52 | |||
53 | return [ |
||
54 | new DropdownField($this->getSettingName('Level'), $label, $levels, $level), |
||
55 | ]; |
||
56 | } |
||
57 | |||
66 |