From a286af0c20ba957b7342285bea0c31e15f553f70 Mon Sep 17 00:00:00 2001 From: Evan Willhite Date: Thu, 31 Oct 2019 09:47:51 -0500 Subject: [PATCH] updating per 2.x Twig documentation --- bem.function.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bem.function.php b/bem.function.php index e93e34a..2c388a5 100644 --- a/bem.function.php +++ b/bem.function.php @@ -6,7 +6,7 @@ use Drupal\Core\Template\Attribute; -$function = new Twig_SimpleFunction('bem', function ($context, $base_class, $modifiers = array(), $blockname = '', $extra = array()) { +$function = new \Twig\TwigFunction('bem', function ($context, $base_class, $modifiers = array(), $blockname = '', $extra = array()) { $classes = []; // Add the ability to pass an object as the one and only argument.