Problem/Motivation
On a public asset, there is an option to use the original image in the UCV DAT select list. See the attached screenshot. However, the image does not render with the Bynder field formatter and a warning is displayed.
Warning: Undefined array key "original" in Drupal\bynder\Plugin\Field\FieldFormatter\BynderFormatter->viewElements() (line 302 of modules/contrib/bynder/src/Plugin/Field/FieldFormatter/BynderFormatter.php).
Rendered code:
<img class="bynder-image" loading="eager" alt="">
Steps to reproduce
Mark an asset as public in Bynder. Set up an entity browser with Bynder single selection for DAT and try rendering the original image.
Proposed resolution
Dynamically add original URL to thumbnails in BynderFormatter since it is only applicable to public assets.
Remaining tasks
Review MR and iterate.
Add test coverage.
User interface changes
None.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot 2025-11-14 at 11.02.49 AM.png | 30.48 KB | richardbporter |
Issue fork bynder-3558322
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
richardbporter commentedComment #4
richardbporter commentedComment #5
richardbporter commented