Skip to content

Instantly share code, notes, and snippets.

@skrosoft
Created November 21, 2018 05:34
Show Gist options
  • Save skrosoft/67f3bbbd83c11509db3f7a8cd2d00282 to your computer and use it in GitHub Desktop.
Save skrosoft/67f3bbbd83c11509db3f7a8cd2d00282 to your computer and use it in GitHub Desktop.
Twig example using ViewParametersGenerator service
<a href="{{ path( "ez_urlalias", {"locationId": 80} ) }}{{ viewparametersgenerator.generate({'item': content.id}) }}">My link</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment