node.html.twig

Same filename in this branch
  1. 11.x core/profiles/demo_umami/themes/umami/templates/content/node.html.twig
  2. 11.x core/themes/olivero/templates/content/node.html.twig
  3. 11.x core/themes/stable9/templates/content/node.html.twig
  4. 11.x core/themes/claro/templates/classy/content/node.html.twig
  5. 11.x core/themes/starterkit_theme/templates/content/node.html.twig
  6. 11.x core/modules/node/templates/node.html.twig
  7. 11.x core/modules/system/tests/themes/test_theme/templates/node.html.twig
Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/templates/content/node.html.twig
  2. 9 core/themes/olivero/templates/content/node.html.twig
  3. 9 core/themes/stable9/templates/content/node.html.twig
  4. 9 core/themes/seven/templates/classy/content/node.html.twig
  5. 9 core/themes/claro/templates/classy/content/node.html.twig
  6. 9 core/themes/bartik/templates/node.html.twig
  7. 9 core/themes/stable/templates/content/node.html.twig
  8. 9 core/themes/starterkit_theme/templates/content/node.html.twig
  9. 9 core/themes/classy/templates/content/node.html.twig
  10. 9 core/modules/node/templates/node.html.twig
  11. 9 core/modules/system/tests/themes/test_theme/templates/node.html.twig
  12. 9 core/modules/statistics/tests/themes/statistics_test_attached/node.html.twig
  13. 8.9.x core/profiles/demo_umami/themes/umami/templates/content/node.html.twig
  14. 8.9.x core/themes/seven/templates/classy/content/node.html.twig
  15. 8.9.x core/themes/claro/templates/classy/content/node.html.twig
  16. 8.9.x core/themes/bartik/templates/node.html.twig
  17. 8.9.x core/themes/stable/templates/content/node.html.twig
  18. 8.9.x core/themes/classy/templates/content/node.html.twig
  19. 8.9.x core/modules/node/templates/node.html.twig
  20. 8.9.x core/modules/system/tests/themes/test_theme/templates/node.html.twig
  21. 8.9.x core/modules/statistics/tests/themes/statistics_test_attached/node.html.twig
  22. 10 core/profiles/demo_umami/themes/umami/templates/content/node.html.twig
  23. 10 core/themes/olivero/templates/content/node.html.twig
  24. 10 core/themes/stable9/templates/content/node.html.twig
  25. 10 core/themes/claro/templates/classy/content/node.html.twig
  26. 10 core/themes/starterkit_theme/templates/content/node.html.twig
  27. 10 core/modules/node/templates/node.html.twig
  28. 10 core/modules/system/tests/themes/test_theme/templates/node.html.twig
  29. 10 core/modules/statistics/tests/themes/statistics_test_attached/node.html.twig
{{ title_prefix }} {% if not page %}

{{ label }}

{% endif %} {{ title_suffix }} {% if display_submitted %}
{{ author_picture }}
{% trans %}Submitted by {{ author_name }} on {{ date }}{% endtrans %} {{ metadata }}
{% endif %}
{{ content.body }}
1 theme call to node.html.twig
TwigDebugMarkupTest::testTwigDebugMarkup in core/modules/system/tests/src/Functional/Theme/TwigDebugMarkupTest.php
Tests debug markup added to Twig template output.

File

core/modules/statistics/tests/themes/statistics_test_attached/node.html.twig

View source
  1. <article{{ attributes }}>
  2. {{ title_prefix }}
  3. {% if not page %}
  4. <h2{{ title_attributes }}>
  5. <a href="{{ url }}" rel="bookmark">{{ label }}</a>
  6. </h2>
  7. {% endif %}
  8. {{ title_suffix }}
  9. {% if display_submitted %}
  10. <footer>
  11. {{ author_picture }}
  12. <div{{ author_attributes }}>
  13. {% trans %}Submitted by {{ author_name }} on {{ date }}{% endtrans %}
  14. {{ metadata }}
  15. </div>
  16. </footer>
  17. {% endif %}
  18. <div{{ content_attributes }}>
  19. {{ content.body }}
  20. </div>
  21. </article>

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.