Archived video

This video is archived and won't be updated. We're keeping it online for now as a courtesy.

Alternate resources: 

Add a Twig Service and DI Tags in Symfony 3

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:08
    Because the $funFact needs to be parsed through markdown,
  • 0:11
    we have to pass it as an independent variable into the template.
  • 0:15
    You know what would be way cooler?
  • 0:18
    If we could just say genus.funFact|markdown.
  • 0:23
    Okay, actually we can do this already.
  • 0:26
    The KnpMarkdownBundle comes with a filter called markdown.
  • 0:32
    Remove the app.php from the URL and refresh.
  • 0:37
  • 0:39
    This parses the string to markdown.
  • 0:41
    Well, OK, it doesn't look like much but if you view the HTML,

Add a Twig Service and DI Tags in Symfony 3


In this lesson, you'll learn how to extend Twig and create a Twig extension service to use in our Symfony 3 app.

Log in or sign up to download companion files.

Additional resources:
There are no resources for this video. If you believe there should be, please contact us.