Skip to content
Snippets Groups Projects

Issue #3281327: Fallback image if the image is not found

5 files
+ 7
5
Compare changes
  • Side-by-side
  • Inline

Files

@@ -183,7 +183,7 @@ class RandomDataPlugin extends PluginBase implements ProjectBrowserSourceInterfa
'field_project_images' => [
[
'file' => [
'uri' => 'https://picsum.photos/600/400',
'uri' => rand(0, 3) ? 'https://picsum.photos/600/400' : 'https://image.not/found.jpg',
'resource' => 'image',
],
'alt' => $machine_name . ' logo',
Loading