@@ 384-391 (lines=8) @@ | ||
381 | 'target_id' => $id, |
|
382 | '_weight' => $values['current'][$id]['_weight'], |
|
383 | ]; |
|
384 | if ($this->fieldDefinition->getType() == 'file') { |
|
385 | if (isset($values['current'][$id]['meta']['description'])) { |
|
386 | $item_values['description'] = $values['current'][$id]['meta']['description']; |
|
387 | } |
|
388 | if ($this->fieldDefinition->getSetting('display_field') && isset($values['current'][$id]['meta']['display_field'])) { |
|
389 | $item_values['display'] = $values['current'][$id]['meta']['display_field']; |
|
390 | } |
|
391 | } |
|
392 | if ($this->fieldDefinition->getType() == 'image') { |
|
393 | if (isset($values['current'][$id]['meta']['alt'])) { |
|
394 | $item_values['alt'] = $values['current'][$id]['meta']['alt']; |
|
@@ 392-399 (lines=8) @@ | ||
389 | $item_values['display'] = $values['current'][$id]['meta']['display_field']; |
|
390 | } |
|
391 | } |
|
392 | if ($this->fieldDefinition->getType() == 'image') { |
|
393 | if (isset($values['current'][$id]['meta']['alt'])) { |
|
394 | $item_values['alt'] = $values['current'][$id]['meta']['alt']; |
|
395 | } |
|
396 | if (isset($values['current'][$id]['meta']['title'])) { |
|
397 | $item_values['title'] = $values['current'][$id]['meta']['title']; |
|
398 | } |
|
399 | } |
|
400 | $return[] = $item_values; |
|
401 | } |
|
402 | } |