Enable/test bubbleArgMetadata($arg) for our twig extensions #207
Labels
Drupal 9
Everyone's favorite version until Drupal 10 comes
enhancement
New feature or request
Field Formatter
The thing that glues the pieces and adds glitter
metadata
Meta(l) data
Twig Extension
Make those flowers reach the sun
Twig
Twig template processing
Milestone
What?
Because twig extensions render things directly, sometimes their own cache tags get lost on the actual Field Formatter level render. Means if an URL or something changes the Field Formatter is not aware and does not clear up the caches. This is very important if we are e.g rendering URLS with tokens or any access needs that need to be refreshed constantly
Core Twig Extensions have a helper method
protected function bubbleArgMetadata($arg)
that does this. We could do something similar and then on the actual native Metadata Display Rendering make use of those bubbled Metadata Cache tagshttps://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Template%21TwigExtension.php/9.4.x
@aksm @patdunlavey what do you both think?
The text was updated successfully, but these errors were encountered: