I just realized, that embed was updated in December ... and the now handle the icons with data from the DB.
So the icon.data (see https://www.drupal.org/files/issues/2019-12-28/interdiff_5_9.txt from #3101777: Fill in the media_directories_editor module skeleton) was probably working with the latest version of embed.

Let's migrate to that, maybe old style should also be supported .. ?

Comments

ytsurk created an issue. See original summary.

ytsurk’s picture

rang501’s picture

Yes, I took the latest Embed version because the old version required fixed paths which is hard to set because we can't be sure where this module is installed, it can be different from the default.
I'm not sure if we need to add an upgrade path - this button didn't exist in alpha release and came at a similar time while the new Embed was released, but we should probably specify Embed module minimum version.

ytsurk’s picture

I changed back to the old-style, w/o the use of the EmbedButton, so the config ends up having a reference to a file, and not the icon-data .. so this should be changed back to your config code!

rang501’s picture

Ok, here is the fixed version, which includes correct icon. I would skip creating an upgrade path here, as this is a new feature that didn't exist in alpha release and the user who has already installed dev version, can always use the icon inside the module.

rang501’s picture

Forgot to add minimum embed version, also, while being there, fixed description, it didn't show on Extend page.

rang501’s picture

Status: Active » Needs review
ytsurk’s picture

I guess the install stuff needs also to be removed ..

  • ytsurk committed 68a8712 on 8.x-1.x
    Issue #3106183 by rang501, ytsurk: Rework embed button config
    
ytsurk’s picture

Status: Needs review » Fixed

Removed the install hook and fixed an error in the update hook.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.