Problem/Motivation

(Twig_SimpleFilter,Twig_SimpleFunction ,Twig_Extension ) was deprecated in Twig 2, and is no longer available in Twig 3, which is used in Drupal 10.

Twig_Extension in /src/Twig/TwigExtension.php is should replaced with Twig\Extension\AbstractExtension
Twig_SimpleFilter in /src/Twig/TwigExtension.php should be replaced with Twig\TwigFilter.
Twig_SimpleFunction in /src/Twig/TwigExtension.php should be replaced with Twig\TwigFunction.

Comments

Ahlam Aljawahreh created an issue. See original summary.

ahlam aljawahreh’s picture

Title: Uncaught Error: Class "Twig_Extension" not found » Uncaught Error: Class 'Twig_Extension' not found
ahlam aljawahreh’s picture

ahlam aljawahreh’s picture

ahlam aljawahreh’s picture

anas_maw’s picture

Status: Active » Reviewed & tested by the community

Great, Thanks

  • b9b2a5e3 committed on 8.x-1.x-dev
    Issue #3406481 by Ahlam Aljawahreh, Anas_maw:  Uncaught Error: Class '...
anas_maw’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.