mark.html.twig
Same filename in this branch
- 9 core/themes/stable9/templates/content/mark.html.twig
- 9 core/themes/seven/templates/classy/content/mark.html.twig
- 9 core/themes/claro/templates/classy/content/mark.html.twig
- 9 core/themes/bartik/templates/classy/content/mark.html.twig
- 9 core/themes/stable/templates/content/mark.html.twig
- 9 core/themes/starterkit_theme/templates/content/mark.html.twig
- 9 core/themes/classy/templates/content/mark.html.twig
- 9 core/modules/history/tests/themes/history_test_theme/templates/mark.html.twig
- 9 core/modules/system/templates/mark.html.twig
Same filename in other branches
- 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/content/mark.html.twig
- 8.9.x core/themes/seven/templates/classy/content/mark.html.twig
- 8.9.x core/themes/claro/templates/classy/content/mark.html.twig
- 8.9.x core/themes/bartik/templates/classy/content/mark.html.twig
- 8.9.x core/themes/stable/templates/content/mark.html.twig
- 8.9.x core/themes/classy/templates/content/mark.html.twig
- 8.9.x core/modules/system/templates/mark.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/classy/content/mark.html.twig
- 10 core/themes/stable9/templates/content/mark.html.twig
- 10 core/themes/claro/templates/classy/content/mark.html.twig
- 10 core/themes/starterkit_theme/templates/content/mark.html.twig
- 10 core/modules/history/tests/themes/history_test_theme/templates/mark.html.twig
- 10 core/modules/system/templates/mark.html.twig
- 11.x core/profiles/demo_umami/themes/umami/templates/classy/content/mark.html.twig
- 11.x core/themes/stable9/templates/content/mark.html.twig
- 11.x core/themes/claro/templates/classy/content/mark.html.twig
- 11.x core/themes/starterkit_theme/templates/content/mark.html.twig
- 11.x core/modules/history/tests/themes/history_test_theme/templates/mark.html.twig
- 11.x core/modules/system/templates/mark.html.twig
Theme override for a marker for new or updated content.
Available variables:
- status: Number representing the marker status to display. Use the constants below for comparison:
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
- {#
- /**
- * @file
- * Theme override for a marker for new or updated content.
- *
- * Available variables:
- * - status: Number representing the marker status to display. Use the constants
- * below for comparison:
- * - MARK_NEW
- * - MARK_UPDATED
- * - MARK_READ
- */
- #}
- {% if logged_in %}
- {% if status is constant('MARK_NEW') %}
- <span class="marker">{{ 'New'|t }}</span>
- {% elseif status is constant('MARK_UPDATED') %}
- <span class="marker">{{ 'Updated'|t }}</span>
- {% endif %}
- {% endif %}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.