diff --git a/src/Collections.php b/src/Collections.php index ac1059b..cd3dd58 100644 --- a/src/Collections.php +++ b/src/Collections.php @@ -54,7 +54,7 @@ public function init() parent::init(); self::$plugin = $this; - Craft::$app->view->twig->addExtension(new CollectionsTwigExtension()); + Craft::$app->view->registerTwigExtension(new CollectionsTwigExtension()); Event::on( CraftVariable::class,