BuildFieldTrait::buildEntities and BuildFieldTrait::buildEntitiesWithViewModes should include cache dependencies for rendered entities
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3571124. --> Reported by: [dagmar](https://www.drupal.org/user/154086) Related to !46 !47 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>When calling </p> <p><code>BuildFieldTrait::buildEntities($list);</code> cache dependencies are not added. They are part of the array but they are not bubbled up correctly. I'm not sure if this is a core issue or the way PEVB handles this.</p> <p>The thing is even when #cache is part of the node returned by view builder, it does not get applied to the entire render array.</p>
issue