{% set methods = methods(node)|sortByVisibility %} {% if methods is not empty %} Methods {{ include('components/headerlink.html.twig', {'on': node, 'at': 'methods'}, with_context = false) }} {% for method in methods %} {% include 'components/method.html.twig' %} {% endfor %} <-- modeled_exceptions --> {% endif %}