- Issue created by @AaronBauman
- Status changed to Needs review
over 1 year ago 3:45pm 23 December 2023 - πΊπΈUnited States AaronBauman Philadelphia
Could it be that simple? That would be great
I'll test it out when i have a chance, thanks
As a frequent author of dynamic DS Field plugins, I find myself constantly having to worry about including the #cache
index in my build arrays, so that my DS fields are cached properly.
It sure would be nice if I could implement methods like getCacheContexts
, getCacheTags
, and getCacheMaxAge
, the same way \Drupal\Core\Block\BlockBase
does via \Drupal\Core\Plugin\ContextAwarePluginTrait
, so that I could clearly and explicitly define my cache settings, rather than having to include #cache
in the render array.
Needs review
3.0
Code
Could it be that simple? That would be great
I'll test it out when i have a chance, thanks