Remove deprecated Twig_SimpleFilter and Twig_Extension usage

Created on 20 April 2023, about 1 year ago
Updated 21 April 2023, about 1 year ago

Problem/Motivation

Similar to https://www.drupal.org/project/twig_field_value/issues/3310839 .

The use of Twig_SimpleFilter in /src/Twig/Extension/FieldValueExtension.php is deprecated and should be replaced with Twig\TwigFilter.

Twig_SimpleFilter was deprecated in Twig 2, and is no longer available in Twig 3, which is used in Drupal 10. The new class is available also in Twig 2, and is a simple replacement of the class name, as the Twig_SimpleFilter in Twig 2 is an alias of TwigFilter.

Likewise, the Twig_Extension has been deprecated and replaced with Twig\Extension\AbstractExtension

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇲🇾Malaysia ckng

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024