Problem/Motivation
Field cache is not preserved when using the filter.
Steps to reproduce
In a twig template using the filter, dump the field and the same field with filter applied.
No cache parameters from the field are displayed.
Proposed resolution
Add/modify tests to check the cache for the filter.
Call the renderer service to propagate the field cableable metadata.
Issue fork twig_field_value-3462698
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
aaron gil martinez commentedComment #4
aaron gil martinez commentedComment #5
sardara commentedI've tested the pull request and it works correctly.
Comment #7
grevil commentedLooks great!
Thanks a lot for the great test coverage! RTBC + 1 🙂👍
Only did some deprecation adjustments, as this module is D11 ready now!
Comment #9
grevil commentedComment #11
m4oliveiHey there 👋. Just curious, does this update to the module mean that the following docs on the project page no longer apply? That is to say, on a quick read of the 2.x code it looks like cacheability metadata is now properly accounted for when using
field_rawandfield_target_entity