@@ 410-417 (lines=8) @@ | ||
407 | 'target_id' => $id, |
|
408 | '_weight' => $values['current'][$id]['_weight'], |
|
409 | ]; |
|
410 | if ($this->fieldDefinition->getType() == 'file') { |
|
411 | if (isset($values['current'][$id]['meta']['description'])) { |
|
412 | $item_values['description'] = $values['current'][$id]['meta']['description']; |
|
413 | } |
|
414 | if ($this->fieldDefinition->getSetting('display_field') && isset($values['current'][$id]['meta']['display_field'])) { |
|
415 | $item_values['display'] = $values['current'][$id]['meta']['display_field']; |
|
416 | } |
|
417 | } |
|
418 | if ($this->fieldDefinition->getType() == 'image') { |
|
419 | if (isset($values['current'][$id]['meta']['alt'])) { |
|
420 | $item_values['alt'] = $values['current'][$id]['meta']['alt']; |
|
@@ 418-425 (lines=8) @@ | ||
415 | $item_values['display'] = $values['current'][$id]['meta']['display_field']; |
|
416 | } |
|
417 | } |
|
418 | if ($this->fieldDefinition->getType() == 'image') { |
|
419 | if (isset($values['current'][$id]['meta']['alt'])) { |
|
420 | $item_values['alt'] = $values['current'][$id]['meta']['alt']; |
|
421 | } |
|
422 | if (isset($values['current'][$id]['meta']['title'])) { |
|
423 | $item_values['title'] = $values['current'][$id]['meta']['title']; |
|
424 | } |
|
425 | } |
|
426 | $return[] = $item_values; |
|
427 | } |
|
428 | } |