@@ 16-21 (lines=6) @@ | ||
13 | public function expand($values) { |
|
14 | $return = []; |
|
15 | if (isset($this->fieldInfo['columns']['value2'])) { |
|
16 | foreach ($values as $value) { |
|
17 | $return[$this->language][] = [ |
|
18 | 'value' => $value[0], |
|
19 | 'value2' => $value[1], |
|
20 | ]; |
|
21 | } |
|
22 | } |
|
23 | else { |
|
24 | foreach ($values as $value) { |
@@ 15-20 (lines=6) @@ | ||
12 | */ |
|
13 | public function expand($values) { |
|
14 | $return = []; |
|
15 | foreach ($values as $value) { |
|
16 | $return[$this->language][] = [ |
|
17 | 'title' => $value[0], |
|
18 | 'url' => $value[1], |
|
19 | ]; |
|
20 | } |
|
21 | return $return; |
|
22 | } |
|
23 |