From 234c9f92de6d27c77033af2e1f48c8b348343593 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 5 Dec 2019 13:27:17 +0100 Subject: [PATCH] Fixed the minimum Twig version needed for lazy extensions --- templating/twig_extension.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templating/twig_extension.rst b/templating/twig_extension.rst index dc0e29f8ccb..8508091000d 100644 --- a/templating/twig_extension.rst +++ b/templating/twig_extension.rst @@ -95,9 +95,9 @@ You can now start using your filter in any Twig template. Creating Lazy-Loaded Twig Extensions ------------------------------------ -.. versionadded:: 1.26 +.. versionadded:: 1.35 - Support for lazy-loaded extensions was introduced in Twig 1.26. + Support for lazy-loaded extensions was introduced in Twig 1.35.0 and 2.4.4. Including the code of the custom filters/functions in the Twig extension class is the simplest way to create extensions. However, Twig must initialize all