I am trying to use an update_hook
to uninstall video_embed_wysiwyg
.
- I have successfully removed the button from the toolbar of my WYSIWYG text format in the
update_hook
. - Disabled the Video Embed WYSIWYG under enabled videos in the
update_hook
. - All references to
video_embed_wysiwyg
removed fromeditor.editor.wysiwyg.yml
inupdate_hook
. - All references to
video_embed_wysiwyg
removed fromfilter.format.wysiwyg.yml
inupdate_hook
. - There are no nodes that use a
video_embed_wysiwyg
.
When I add the line to uninstall the module in my update_hook
Drupal::service('module_installer')->uninstall(['video_embed_wysiwyg']);
I get the following error:
[error] The following reasons prevent the modules from being uninstalled: Provides a filter plugin that is in use in the following filter formats: WYSIWYG
But my filter is not ‘in use’. It’s turned off. What am I missing so I can uninstall this module?