| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function getFieldConfiguration() |
||
| 18 | { |
||
| 19 | $levels = [ |
||
| 20 | '1' => '1', |
||
| 21 | '2' => '2', |
||
| 22 | '3' => '3', |
||
| 23 | '4' => '4', |
||
| 24 | '5' => '5', |
||
| 25 | '6' => '6', |
||
| 26 | ]; |
||
| 27 | |||
| 28 | $level = ($this->getSetting('Level')) ? $this->getSetting('Level') : 3; |
||
| 29 | $label = _t('Moo_EditableFieldHeading.LEVEL', 'Select Heading Level'); |
||
| 30 | |||
| 31 | return [ |
||
| 32 | new DropdownField($this->getSettingName('Level'), $label, $levels, $level), |
||
| 33 | ]; |
||
| 34 | } |
||
| 35 | |||
| 49 |