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.

Issue fork bynder-3558322

Command icon 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

richardbporter created an issue. See original summary.

richardbporter’s picture

Assigned: Unassigned » richardbporter
Issue summary: View changes
richardbporter’s picture

Status: Active » Needs review
richardbporter’s picture

Issue summary: View changes