Problem/Motivation
It would have been fun to put this in place...
Steps to reproduce
Drupal 8.9.6 - using module default installation added to basic html text filter
/node/1/edit
Error: Class 'Drupal\pirate\Plugin\Filter\Drupal' not found in Drupal\pirate\Plugin\Filter\Pirate->process() (line 47 of modules/contrib/pirate/src/Plugin/Filter/Pirate.php).
Attempted to import previous configurations - failed with error unable to uninstall
ResponseText: The website encountered an unexpected error. Please try again later.Drupal\Core\Extension\ModuleUninstallValidatorException: The following reasons prevent the modules from being uninstalled: Provides a filter plugin that is in use in the following filter formats: <em class="placeholder">Basic HTML</em> in Drupal\Core\Extension\ModuleInstaller->uninstall() (line 398 of core/lib/Drupal/Core/Extension/ModuleInstaller.php).
Attempted to manually remove the plugin from the basic HTML filter and got the same error received on node edit. (above)
Currently blocked from removing the module at this point.
Comments
Comment #2
bsnodgrass commentedComment #4
sillygwailoI just committed a fix to the dev branch, and I'll make a release shortly. Can you try the dev release to see if it resolves the issue for you?
And yes, I am aware of what day it is. Yarr!
Comment #5
bsnodgrass commentedDev version worked
Cleared the error on the config screen and the node edit screen
The node I was editing was using Full HTML format (if that makes a difference) I changed it to Basic HTML and got the expected results,
Yarr Matey!
Comment #6
sillygwailoGreat! I created a release which incorporates this. Closing this out, ye' scurvy dogs!
Comment #7
sillygwailoComment #8
bsnodgrass commentedThanks... see FoxValleyDrupal.org ...
Guess what day it is... International Talk Like A Pirate Day