Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #3 from brandonkelly/patch-1
Browse files Browse the repository at this point in the history
Use registerTwigExtension()
  • Loading branch information
sjelfull authored Jul 20, 2018
2 parents 49c13bc + 6a2f346 commit 483e48d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Collections.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 483e48d

Please sign in to comment.