symfony 3 twig action by route name code example Example: twig symfony get route {% set current_path = app.request.get('_route') %} {{ current_path }}