-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
Drupal 9Everyone's favorite version until Drupal 10 comesEveryone's favorite version until Drupal 10 comesField FormatterThe thing that glues the pieces and adds glitterThe thing that glues the pieces and adds glitterTwigTwig template processingTwig template processingTwig ExtensionMake those flowers reach the sunMake those flowers reach the sunenhancementNew feature or requestNew feature or requestmetadataMeta(l) dataMeta(l) data
Milestone
Description
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 tags
https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Template%21TwigExtension.php/9.4.x
@aksm @patdunlavey what do you both think?
Metadata
Metadata
Assignees
Labels
Drupal 9Everyone's favorite version until Drupal 10 comesEveryone's favorite version until Drupal 10 comesField FormatterThe thing that glues the pieces and adds glitterThe thing that glues the pieces and adds glitterTwigTwig template processingTwig template processingTwig ExtensionMake those flowers reach the sunMake those flowers reach the sunenhancementNew feature or requestNew feature or requestmetadataMeta(l) dataMeta(l) data