Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
theme system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Sep 2015 at 18:31 UTC
Updated:
27 Sep 2015 at 19:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
joelpittet+1 to this. Twig's default is this as well so makes sense to change this.
Can we ensure that
TwigExtension::escapeFilter()'s last parameter is also using this?and
TwigExtensionTest::testEscaping()andTwigExtensionTest::testSafeStringEscaping()Comment #3
star-szrThanks for this @stefan.r, I found this too as part of #2555243: Upgrade path / plan to Twig 2.x aka 2.0.
Here's the other ones @joelpittet mentioned. I think escapeFilter() is different isn't it? It's not $strategy, the docs say:
Which is the same as what the upstream docs say plus/minus some capitalization ;)
Leaving that one alone for now.
Comment #4
joelpittetYou're right @Cottser ignore ::escapeFilter(), the strategy is got elsewhere.
This is a nice fix to keep this in sync with upstream and prevent
setDefaultStrategyfrom triggering the deprecation notice.Comment #5
xjmNice find. Committed and pushed to 8.0.x. Thanks!