Make the Pixabay widget unavailable on instances of FileBrowserWidget class widgets

Created on 4 March 2024, 4 months ago
Updated 19 March 2024, 3 months ago

Problem/Motivation

The Pixabay widget implementation only supports widget instances of EntityReferenceBrowserWidget class, so it should not be available on the FileBworserWidget class widget instances.

Steps to reproduce

  • Install and configure the module as stated in the readme file.
  • Create a field of type image on a content type and configure the Entity browser widget for it in the content type's form display settings.
  • Add the content type, and select something in the entity browser on the image type field.
  • An error appears because this is not supported.

Proposed resolution

On widget form display for file and image type fields, prevent the selection of any entity browsers, that use the Pixabay widget.

🐛 Bug report
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

🇸🇮Slovenia slogar32

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @slogar32
  • Issue was unassigned.
  • Status changed to Closed: works as designed 3 months ago
  • 🇸🇮Slovenia slogar32

    Entity browser behaves like this by default. If you add a MediaImageUpload instance of the browser on a FileBrowserWidget, the same error is given. Since there is no handling of this in the module, that we extend I am closing this.

Production build 0.69.0 2024