-
benjifisher →
committed 06a4e01a on 8.x-1.x authored by
prudloff →
Issue #3290195 by Project Update Bot, Dmitriy.trt, prudloff, neffets,...
-
benjifisher →
committed 06a4e01a on 8.x-1.x authored by
prudloff →
- Status changed to Fixed
almost 2 years ago 2:04am 25 March 2023 - 🇺🇸United States benjifisher Boston area
Thanks to all: I credited everyone who commented on this issue.
@neffets: next time, please give more detail. Did you review? Did you test? What steps did you use?
I credited @Dmitriy.trt because having the MR is helpful for users to install the module before there is a compatible release.
I installed the module on Drupal 9.5 and tested with the
upgrade_status
module. It recommended the changes in #7 for the Twig filter. Does anyone have a reference for these changes?Class Drupal\typogrify\TwigExtension\Typogrify extends deprecated class Twig_Extension: since Twig 2.7, use "Twig\Extension\AbstractExtension" instead
and
Instantiation of deprecated class Twig_SimpleFilter: since Twig 2.7, use "Twig\TwigFilter" instead
Unfortunately, I never added test coverage for the Twig filters, so I tested manually. Still using Drupal 9.5, I used the
typogrify
Twig filter in a view, then added this text to a node:Test Typogrify: 'single quotes', "double quotes", CAPS & t.l.a. and--don't forget---dashes.
Looking at the page source, that was converted like this:
Test Typogrify: ‘single quotes’, “double quotes”, <span class="caps">CAPS</span> <span class="amp">&</span> t.l.a. and — don’t forget — -dashes.
Then I upgraded Drupal core to 10.1.x, applied the patch from #7, executed database updates, and reloaded the page. I saw exactly the same processed text in the page source.
I will create a new release with just this update, then maybe add another issue or two to the 8.x-1.x branch.
Automatically closed - issue fixed for 2 weeks with no activity.