Calling Developers!
We are reenergizing our code contribution process! Learn More

What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hello guys few questions about twig implementation: 1. Is there a way to get logged customer in Tw

Options
U02DBNVTTAS
U02DBNVTTAS Posts: 16 🧑🏻‍🚀 - Cadet

Hello guys

few questions about twig implementation:

  1. Is there a way to get logged customer in Twig template?
  2. Is there a way to set global env related twig variable? I need api key be used for service like GTM.
  3. If it’s a better way to get Yves base url in twig than
{{ app.request.getSchemeAndHttpHost }}

Comments