Module uses the {{ paragraph | view }} twig filter that is provided by twig_tweak

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mrogers created an issue. See original summary.

nicolas bouteille’s picture

Nice catch and glad you're using it!
Thanks as well for the MR!
However, I think I'll rather remove the dependance on Twig Tweak here with something like

return $this->entityTypeManager
      ->getViewBuilder('paragraph')
      ->view($paragraph, 'default'); // original code was relying on Twig tweak {{ paragraph | view }} which uses 'default' view mode, not 'full'... so we specify 'default' so that this update does not break existing websites

will be releasing a new release soon with the update!

mrogers’s picture

Awesome, sounds like a cleaner solution!

nicolas bouteille’s picture

Assigned: Unassigned » nicolas bouteille
Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

nicolas bouteille’s picture

Title: Declare dependancy on Twig Tweak » Remove dependency on Twig Tweak

Status: Fixed » Closed (fixed)

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