| Total Complexity | 4 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class multi_input extends cfg_field_base |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @inheritdoc |
||
| 19 | */ |
||
| 20 | public function get_name() |
||
| 21 | { |
||
| 22 | return 'multi_input'; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | public function prep_field(array &$vars, array &$type, $field, array $db_settings) |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Used to add multi-select drop down in blocks config |
||
| 50 | * |
||
| 51 | * @param string $field |
||
| 52 | * @param bool $sortable |
||
| 53 | * @param array $values |
||
| 54 | * @param string $label |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function build_multi_input($field, $sortable, array $values, $label = '') |
||
| 67 | } |
||
| 68 | } |
||
| 69 |