Problem/Motivation
The Media pixabay api needs to have an api key set to a default value that is an empty string.
Steps to reproduce
- Install the module
- enable it
- try adding the entity browser widget without first setting up a media pixabal api key
You should see a "Oops, something went wrong. Check your browser's developer console for more details." error.
Proposed resolution
Allow setting up an empty string for api key via config install.
Remaining tasks
Write an update hook for those who already have the module installed and enabled.
Issue fork media_pixabay-3380692
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 #4
markman4897 commentedI've added the mentioned update hook and also default configuration yml.
Comment #5
markman4897 commentedComment #6
deaom commentedThe update hook was setting the default value to null, not empty string, it needs to be empty string, so updated that part of the code. In my POV can be merged, but because my change was last I'll leave it to needs review. The #3297621: Automated Drupal 10 compatibility fixes needs to be merged for test for D10 to pass, the config install is also added there.
Comment #7
slogar32 commentedComment #9
slogar32 commentedComment #10
slogar32 commented