You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Carry main_image_url through WorldHeritageDto, the factories, and the ViewModel, and make the exposed thumbnail prefer main_image_url over the legacy images[0]->url.
Changes / 対応内容
Add ?string $mainImageUrl = null to WorldHeritageDto constructor + getter.
Update WorldHeritageDetailFactory::build and WorldHeritageSummaryFactory::build to read main_image_url from the input array.
In WorldHeritageViewModel (and toSummaryArray in WorldHeritageDtoCollection), expose thumbnail_url = main_image_url ?? images[0]?->url ?? null.
Summary
Carry
main_image_urlthroughWorldHeritageDto, the factories, and the ViewModel, and make the exposed thumbnail prefermain_image_urlover the legacyimages[0]->url.Changes / 対応内容
?string $mainImageUrl = nulltoWorldHeritageDtoconstructor + getter.WorldHeritageDetailFactory::buildandWorldHeritageSummaryFactory::buildto readmain_image_urlfrom the input array.WorldHeritageViewModel(andtoSummaryArrayinWorldHeritageDtoCollection), exposethumbnail_url=main_image_url ?? images[0]?->url ?? null.