- Issue created by @cestmoi
- Status changed to Needs review
11 months ago 2:26am 2 August 2023 @ Maintainer(s), this is my first such patch so kindly correct me where applicable.
- Status changed to Closed: duplicate
11 months ago 5:29am 2 August 2023 - 🇮🇳India keshav.k
Thank you @cestmoi for your efforts.
But there is already an issue for it https://www.drupal.org/project/hashtags/issues/3127386 📌 Drupal 9 compatibility RTBC - Status changed to Needs review
11 months ago 6:39am 2 August 2023 @keshav.k thank you but that issue is for D9 not D10 and while D9 is near its EOL shouldn't efforts be on a stable D10 version ? This issue is mainly for D10 compatibility while that issue has no mention of D10. I also added fixes for issues that weren't tackled in that other issue. Anyways, I just hope this module gets the attention it needs esp. that its latest release is only D8 compatible.
With regards to the module install/enable via Drush vs UI, I think since the module cannot be required with Composer due to absence of a compatible release and it has to be added manually, installing it via Drush would cause errors such as the one below because Drush uses the Composer autoloader to load classes, and if the module is not listed in the composer.json file, its classes won't be found. That's why it installs fine via admin UI but not via Drush.
Drupal\Component\Plugin\Exception\PluginException: Plugin (filter_hashtags) instance class "Drupal\hashtags\Plugin\Filter\FilterHashtags" does not exist. in Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass() (line 97 of pathToDrupal-10\web\core\lib\Drupal\Component\Plugin\Factory\DefaultFactory.php).
That's why until there is a compatible release that can be required with Composer, the only way to enable the module is via admin UI, I understand.
I tried to `Composer require` it with the patch following this (D8/D9) tutorial but it didn't work.
- Issue was unassigned.
I think this patch is ready for RTBC. Please test and report so we have a D10 release sooner.