You are here

range-formatter-range-combined.html.twig in Range 8

Default theme implementation of a range with a combined value.

Available variables:

  • item: Range field item object.
  • field_prefix: The FIELD value prefix.
  • value_prefix: The combined value prefix.
  • value: Range field item combined value.
  • value_suffix: The combined value suffix.
  • field_suffix: The FIELD value suffix.

File

templates/range-formatter-range-combined.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation of a range with a combined value.
  5. *
  6. * Available variables:
  7. * - item: Range field item object.
  8. * - field_prefix: The FIELD value prefix.
  9. * - value_prefix: The combined value prefix.
  10. * - value: Range field item combined value.
  11. * - value_suffix: The combined value suffix.
  12. * - field_suffix: The FIELD value suffix.
  13. *
  14. * @see \Drupal\range\Plugin\Field\FieldFormatter\RangeFormatterBase::viewElementCombined()
  15. * @see template_preprocess()
  16. *
  17. * @ingroup themeable
  18. */
  19. #}
  20. {{- field_prefix }}{{ value_prefix }}{{ value }}{{ value_suffix }}{{ field_suffix -}}