diff --git a/src/Twig/ContentTaggingExtension.php b/src/Twig/ContentTaggingExtension.php index bfa75424..a574e2d9 100644 --- a/src/Twig/ContentTaggingExtension.php +++ b/src/Twig/ContentTaggingExtension.php @@ -40,18 +40,38 @@ public function getFunctions() 'ez_http_cache_tag_location', [$this, 'tagHttpCacheForLocation'] ), + new TwigFunction( + 'ez_http_cache_tag_relation_ids', + [$this, 'tagHttpCacheForRelationIds'] + ), + new TwigFunction( + 'ez_http_cache_tag_relation_location_ids', + [$this, 'tagHttpCacheForRelationLocationIds'] + ), // For 2.5 BC, and to be consistent with the other functions, to be cleaned up with new prefix in the future new TwigFunction( 'ez_http_tag_location', - [$this, 'tagHttpCacheForLocation'] + [$this, 'tagHttpCacheForLocation'], + [ + 'deprecated' => true, + 'alternative' => 'ez_http_cache_tag_location', + ] ), new TwigFunction( 'ez_http_tag_relation_ids', - [$this, 'tagHttpCacheForRelationIds'] + [$this, 'tagHttpCacheForRelationIds'], + [ + 'deprecated' => true, + 'alternative' => 'ez_http_cache_tag_relation_ids', + ] ), new TwigFunction( 'ez_http_tag_relation_location_ids', - [$this, 'tagHttpCacheForRelationLocationIds'] + [$this, 'tagHttpCacheForRelationLocationIds'], + [ + 'deprecated' => true, + 'alternative' => 'ez_http_cache_tag_relation_location_ids', + ] ), ]; }