price-plain.html.twig in Price 2.x
Same filename and directory in other branches
Default theme implementation for displaying a price.
Used by the 'price_plain' formatter. Available variables:
- number: The number.
- currency: The currency entity.
1 theme call to price-plain.html.twig
- PricePlainFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ PricePlainFormatter.php - Builds a renderable array for a field value.
File
templates/price-plain.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for displaying a price.
- *
- * Used by the 'price_plain' formatter.
- * Available variables:
- * - number: The number.
- * - currency: The currency entity.
- *
- * @ingroup themeable
- */
- #}
- {{ number|number_format(2, '.', ',') }} {{ currency.currencyCode }}