@@ 398-405 (lines=8) @@ | ||
395 | 'target_id' => $id, |
|
396 | '_weight' => $values['current'][$id]['_weight'], |
|
397 | ]; |
|
398 | if ($this->fieldDefinition->getType() == 'file') { |
|
399 | if (isset($values['current'][$id]['meta']['description'])) { |
|
400 | $item_values['description'] = $values['current'][$id]['meta']['description']; |
|
401 | } |
|
402 | if ($this->fieldDefinition->getSetting('display_field') && isset($values['current'][$id]['meta']['display_field'])) { |
|
403 | $item_values['display'] = $values['current'][$id]['meta']['display_field']; |
|
404 | } |
|
405 | } |
|
406 | if ($this->fieldDefinition->getType() == 'image') { |
|
407 | if (isset($values['current'][$id]['meta']['alt'])) { |
|
408 | $item_values['alt'] = $values['current'][$id]['meta']['alt']; |
|
@@ 406-413 (lines=8) @@ | ||
403 | $item_values['display'] = $values['current'][$id]['meta']['display_field']; |
|
404 | } |
|
405 | } |
|
406 | if ($this->fieldDefinition->getType() == 'image') { |
|
407 | if (isset($values['current'][$id]['meta']['alt'])) { |
|
408 | $item_values['alt'] = $values['current'][$id]['meta']['alt']; |
|
409 | } |
|
410 | if (isset($values['current'][$id]['meta']['title'])) { |
|
411 | $item_values['title'] = $values['current'][$id]['meta']['title']; |
|
412 | } |
|
413 | } |
|
414 | $return[] = $item_values; |
|
415 | } |
|
416 | } |