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

  1. Write a patch
  2. Review
  3. Commit

User interface changes

None.

API changes

None.

Data model changes

None.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

idebr created an issue. See original summary.

idebr’s picture

Status: Active » Needs review
FileSize
5.64 KB
6.24 KB

Attached patch implements the following changes:

  1. Applies cache dependencies set in viewElements() to the formatted field output.
  2. Adds test coverage for the above change.
Sutharsan’s picture

Status: Needs review » Fixed

Good catch!

  • Sutharsan committed 8ffb22d on 8.x-1.x authored by idebr
    Issue #3087346 by idebr: Apply cache dependencies set in viewElements to...

  • Sutharsan committed 8ffb22d on 8.x-2.x authored by idebr
    Issue #3087346 by idebr: Apply cache dependencies set in viewElements to...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.