- 🇺🇸United States benjifisher Boston area
I am not sure why the bot recommends removing
^8
and replacing^9
with^9.3
in the requirements string. The globalrender()
function was deprecated in Drupal 9.3, but the replacement\Drupal::service('renderer')->render()
has been available since 8.0.0.Do I need to remove
core: 8.x
for D10 compatibility, and is that why the minimum version has to be 9.3.0?It seems old-fashioned to keep calling
render()
(whether the global function or the one from the service). But theprocess()
method on a filter plugin has to return aFilterProcessResult
object, and the constructor requires a string, not a render array.I am not going to implement DI, but I will call
\Drupal::service()
a single time in order to make that a little easier to implement in the future.Given the change in compatibility, perhaps I should declare a new major version. But I think I will just say that anyone still using an unsupported version of Drupal (earlier than 9.3) will have to stick with the 8.x-1.1 version of this module. They will not be missing any functional changes.
-
benjifisher →
committed db49c01f on 8.x-1.x
Issue #3297711 by benjifisher, Project Update Bot: Automated Drupal 10...
-
benjifisher →
committed db49c01f on 8.x-1.x
- Status changed to Fixed
about 2 years ago 4:07am 25 March 2023 - 🇺🇸United States benjifisher Boston area
I committed the patch from #5, not the one from the bot.
Automatically closed - issue fixed for 2 weeks with no activity.