mark.html.twig
Same filename in this branch
Default theme implementation 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/
modules/ system/ templates/ mark.html.twig
View source
- {#
- /**
- * @file
- * Default theme implementation 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
- *
- * @ingroup themeable
- */
- #}
- {% if logged_in %}
- {% if status is constant('MARK_NEW') %}
- {{ 'New'|t }}
- {% elseif status is constant('MARK_UPDATED') %}
- {{ 'Updated'|t }}
- {% endif %}
- {% endif %}
Related topics
- Theme system overview
- Functions and templates for the user interface that themes can override.