Problem/Motivation
\Drupal\extra_field\Plugin\ExtraFieldDisplayFormattedBase allows using the field template for outputting extra field elements. However, any cache dependencies added in viewElements are not applied to the field's output.
Proposed resolution
Apply cache dependencies set in viewElements to the formatted field output.
Remaining tasks
- Write a patch
- Review
- Commit
User interface changes
None.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3087346-2.patch | 6.24 KB | idebr |
| #2 | 3087346-2-test-only.patch | 5.64 KB | idebr |
Comments
Comment #2
idebr commentedAttached patch implements the following changes:
viewElements()to the formatted field output.Comment #3
sutharsan commentedGood catch!