2024-09-28 (3 commits)

2024-09-30

Overview

Three changes to improve compatibility with newer versions of Twig, addressing a few deprecations.

Changes

It covers commits from 2024-09-28 on 11.x branch.

#3477374: Fix “The”tag” constructor argument of the “Drupal\Core\Template\TwigNodeTrans” class is deprecated and ignored”

#3477374 - cec21638d098a4526174f0f97eb2e9ad675dcf52

Addresses one pending twig deprecation.

#3474692: Fix “Twig” deprecation introduced in twig/twig 3.12.0

#3474692 - 336ba833bc8591810d0d27a8f36edb973ebb17c7

Addresses another set of pending twig deprecations.

#3457168: Since twig/twig 3.9: error with “twig_escape_filter” function usage in /core/lib/Drupal/Core/Template/TwigExtension.php

#3457168 - 128310c8c9e2913b3a7bc42ff1b0b19a30e64c78

Addresses one more pending twig deprecation.

Annex

Meta

The set

$ git log --oneline --reverse --since=2024-09-27T23:59:59+00:00 --until=2024-09-29T00:00:00+00:00
128310c8c9 Issue #3457168 by raphaelbertrand, gauravvvv, bbrala, longwave: Since twig/twig 3.9: error with "twig_escape_filter" function usage in /core/lib/Drupal/Core/Template/TwigExtension.php
336ba833bc Issue #3474692 by longwave, foxtrotcharlie, bbrala: Fix "Twig\Node\Expression\FilterExpression" deprecation introduced in twig/twig 3.12.0
cec21638d0 Issue #3477374 by finnsky, longwave, bbrala: Fix "The "tag" constructor argument of the "Drupal\\Core\\Template\\TwigNodeTrans" class is deprecated and ignored"

$ git diff --shortstat 128310c8c9~1..cec21638d0
 6 files changed, 21 insertions(+), 12 deletions(-)