mark.html.twig

Same filename in this branch
  1. 8.9.x core/themes/seven/templates/classy/content/mark.html.twig
  2. 8.9.x core/themes/claro/templates/classy/content/mark.html.twig
  3. 8.9.x core/themes/bartik/templates/classy/content/mark.html.twig
  4. 8.9.x core/themes/stable/templates/content/mark.html.twig
  5. 8.9.x core/themes/classy/templates/content/mark.html.twig
  6. 8.9.x core/modules/system/templates/mark.html.twig
Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/templates/classy/content/mark.html.twig
  2. 9 core/themes/stable9/templates/content/mark.html.twig
  3. 9 core/themes/seven/templates/classy/content/mark.html.twig
  4. 9 core/themes/claro/templates/classy/content/mark.html.twig
  5. 9 core/themes/bartik/templates/classy/content/mark.html.twig
  6. 9 core/themes/stable/templates/content/mark.html.twig
  7. 9 core/themes/starterkit_theme/templates/content/mark.html.twig
  8. 9 core/themes/classy/templates/content/mark.html.twig
  9. 9 core/modules/history/tests/themes/history_test_theme/templates/mark.html.twig
  10. 9 core/modules/system/templates/mark.html.twig
  11. 10 core/profiles/demo_umami/themes/umami/templates/classy/content/mark.html.twig
  12. 10 core/themes/stable9/templates/content/mark.html.twig
  13. 10 core/themes/claro/templates/classy/content/mark.html.twig
  14. 10 core/themes/starterkit_theme/templates/content/mark.html.twig
  15. 10 core/modules/history/tests/themes/history_test_theme/templates/mark.html.twig
  16. 10 core/modules/system/templates/mark.html.twig
  17. 11.x core/profiles/demo_umami/themes/umami/templates/classy/content/mark.html.twig
  18. 11.x core/themes/stable9/templates/content/mark.html.twig
  19. 11.x core/themes/claro/templates/classy/content/mark.html.twig
  20. 11.x core/themes/starterkit_theme/templates/content/mark.html.twig
  21. 11.x core/modules/history/tests/themes/history_test_theme/templates/mark.html.twig
  22. 11.x core/modules/system/templates/mark.html.twig

Theme override for a marker for new or updated content.

Available variables:

2 theme calls to mark.html.twig
HistoryUserTimestamp::render in core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php
Renders the field.
NodeListBuilder::buildRow in core/modules/node/src/NodeListBuilder.php
Builds a row for an entity in the entity listing.

File

core/profiles/demo_umami/themes/umami/templates/classy/content/mark.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for a marker for new or updated content.
  5. *
  6. * Available variables:
  7. * - status: Number representing the marker status to display. Use the constants
  8. * below for comparison:
  9. * - MARK_NEW
  10. * - MARK_UPDATED
  11. * - MARK_READ
  12. */
  13. #}
  14. {% if logged_in %}
  15. {% if status is constant('MARK_NEW') %}
  16. <span class="marker">{{ 'New'|t }}</span>
  17. {% elseif status is constant('MARK_UPDATED') %}
  18. <span class="marker">{{ 'Updated'|t }}</span>
  19. {% endif %}
  20. {% endif %}

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