From 532584e1f32000e27bd658641472e9c9c4e15467 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Cs=C3=A1ki?= Date: Tue, 24 Aug 2021 09:46:01 +0200 Subject: [PATCH] #146 fix urls --- 3-front-end-development/3.3-twig-syntax.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/3-front-end-development/3.3-twig-syntax.md b/3-front-end-development/3.3-twig-syntax.md index 5cdbb69..1506946 100644 --- a/3-front-end-development/3.3-twig-syntax.md +++ b/3-front-end-development/3.3-twig-syntax.md @@ -35,7 +35,7 @@ Array items can also be accessed using the subscript syntax (`[]`): {{ foo['bar'] }} ``` -From [Twig for Template Designers](http://twig.sensiolabs.org/doc/2.x/templates.html): +From [Twig for Template Designers](https://twig.symfony.com/doc/3.x/templates.html: > For convenience's sake `foo.bar` does the following things on the PHP layer: > > - check if `foo` is an array and `bar` a valid element; @@ -179,7 +179,7 @@ If filtering the tokens inside the {% trans %} block does not work, create a tok ## Macros -From [Twig's official macro documentation](http://twig.sensiolabs.org/doc/2.x/tags/macro.html): +From [Twig's official macro documentation](https://twig.symfony.com/doc/3.x/tags/macro.html): > Macros are comparable with functions in regular programming languages. They are useful to put often used HTML idioms into reusable elements to not repeat yourself. @@ -207,7 +207,7 @@ Here is a small example of a macro that renders a form element: - [drupal.org: Filters - Modifying Variables In Twig Templates](https://www.drupal.org/docs/8/theming/twig/filters-modifying-variables-in-twig-templates) - [weebpal.com: Drupal 8 Theming Essential Guide](https://www.weebpal.com/blog/drupal-8-theming) - [sqndr.github.io: Twig Debug](https://sqndr.github.io/d8-theming-guide/twig/twig-debug.html) -- [twig.sensiolabs.org: macro](http://twig.sensiolabs.org/doc/2.x/tags/macro.html) +- [twig.symfony.com: macro](https://twig.symfony.com/doc/3.x/tags/macro.html) ---