commerce-price-plain.html.twig in Commerce Core 8.2
Default theme implementation for displaying a price.
Used by the 'commerce_price_plain' formatter. Available variables:
- number: The number.
- currency: The currency entity.
2 theme calls to commerce-price-plain.html.twig
- AddToCartFieldReplacementTest::testFieldReplacement in modules/
cart/ tests/ src/ FunctionalJavascript/ AddToCartFieldReplacementTest.php - Tests the field replacement.
- PricePlainFormatter::viewElements in modules/
price/ src/ Plugin/ Field/ FieldFormatter/ PricePlainFormatter.php - Builds a renderable array for a field value.
File
modules/price/templates/commerce-price-plain.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for displaying a price.
- *
- * Used by the 'commerce_price_plain' formatter.
- * Available variables:
- * - number: The number.
- * - currency: The currency entity.
- *
- * @ingroup themeable
- */
- #}
- {{ number|number_format(2, '.', ',') }} {{ currency.currencyCode }}