You are here

fivestar-formatter-percentage.html.twig in Fivestar 8

Default theme implementation for the Fivestar percentage formatter.

Available variables

  • average: The average rating, expressed as an integer from 0 to 100.

File

templates/fivestar-formatter-percentage.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the Fivestar percentage formatter.
  5. *
  6. * Available variables
  7. * - average: The average rating, expressed as an integer from 0 to 100.
  8. *
  9. * @see template_preprocess_fivestar_formatter_percentage()
  10. *
  11. * @ingroup themeable
  12. */
  13. #}
  14. <span class="fivestar-percentage">{{ average ~ '%' }}</span>