duration-field-duration-time.html.twig in Duration Field 8.2
Same filename and directory in other branches
{% if year or month or day %} {{ year }}/{{ month }}/{{day}} {% endif %} {% if hour or minute or second %} {{ hour }}:{{ minute }}:{{second}} {% endif %}
1 theme call to duration-field-duration-time.html.twig
- DurationTimeFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ DurationTimeFormatter.php - Builds a renderable array for a field value.
File
templates/duration-field-duration-time.html.twigView source
- {% if year or month or day %}
- {{ year }}/{{ month }}/{{day}}
- {% endif %}
-
- {% if hour or minute or second %}
- {{ hour }}:{{ minute }}:{{second}}
- {% endif %}