- 🇳🇿New Zealand quietone
I tested this on Drupal 9.5.x, standard install. I was able to reproduce the problem in the issue summary. I dig some debugging and found that the module install form does calls \Drupal\Core\Extension\ModuleInstaller::validateUninstall and then \Drupal\php\PhpUninstallValidator::validate is called which does
public function validate($module) { $reasons = []; if ($module == 'php') { $this->removeFilterConfig(); } return $reasons; }
And it is that removeFilterConfig which is removing the filter.
Therefor, I am moving this to the php contrib project.
- Status changed to Closed: duplicate
over 1 year ago 2:25pm 12 March 2023 - 🇩🇪Germany Anybody Porta Westfalica
Thanks @quietone and sorry, this is a reeeaaaally old one (5 years).
It's a duplicate of 🐛 Text format with system name "php_code" is deleted when you view admin/modules/uninstall RTBC which has never been fixed. Sorry I didn't know about this duplicate issue anymore, I would have marked it duplicate before myself.
Thank you @quietone, this was driving me crazy for the last 2 days.. So what would be solution? I just commented that line $this->removeFilterConfig(); but what would be the proper way to handle this? Thx.