Twig_SimpleFilter and Twig_Extension usage

Created on 5 April 2023, over 1 year ago
Updated 15 August 2023, over 1 year ago

Problem/Motivation

Installing on Drupal 10 fails because of references to Twig_Extension

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.

From a helpful issue that dealt with just this issue https://www.drupal.org/project/twig_field_value/issues/3310839

Steps to reproduce

Install module in D10.

Proposed resolution

Replace references as example issue.

Remaining tasks

Post patch. Test.

🐛 Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

🇳🇱Netherlands ekes

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

Comments & Activities

Production build 0.71.5 2024