public function MediaImage::getFieldValue in Varbase Media 9.0.x
Same name and namespace in other branches
- 8.7 modules/entity_browser_generic_embed/src/Plugin/entity_embed/EntityEmbedDisplay/MediaImage.php \Drupal\entity_browser_generic_embed\Plugin\entity_embed\EntityEmbedDisplay\MediaImage::getFieldValue()
- 8.5 modules/entity_browser_generic_embed/src/Plugin/entity_embed/EntityEmbedDisplay/MediaImage.php \Drupal\entity_browser_generic_embed\Plugin\entity_embed\EntityEmbedDisplay\MediaImage::getFieldValue()
- 8.6 modules/entity_browser_generic_embed/src/Plugin/entity_embed/EntityEmbedDisplay/MediaImage.php \Drupal\entity_browser_generic_embed\Plugin\entity_embed\EntityEmbedDisplay\MediaImage::getFieldValue()
File
- modules/
entity_browser_generic_embed/ src/ Plugin/ entity_embed/ EntityEmbedDisplay/ MediaImage.php, line 85
Class
- MediaImage
- Renders a media item's image via the image formatter.
Namespace
Drupal\entity_browser_generic_embed\Plugin\entity_embed\EntityEmbedDisplayCode
public function getFieldValue() {
$value = parent::getFieldValue();
$value['target_id'] = $this
->getItem()->target_id;
return $value;
}