barcode.html.twig in Barcode 8
Default theme implementation of a barcode element.
Available variables:
- barcode: The generated barcode.
- data: The raw data.
- value: The barcode number.
- type: The barcode type.
See also
3 theme calls to barcode.html.twig
- BarcodeFormatterHtml::viewElements in src/
Plugin/ Field/ FieldFormatter/ BarcodeFormatterHtml.php - Builds a renderable array for a field value.
- BarcodeFormatterPng::viewElements in src/
Plugin/ Field/ FieldFormatter/ BarcodeFormatterPng.php - Builds a renderable array for a field value.
- BarcodeFormatterSvg::viewElements in src/
Plugin/ Field/ FieldFormatter/ BarcodeFormatterSvg.php - Builds a renderable array for a field value.
File
templates/barcode.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation of a barcode element.
- *
- * Available variables:
- * - barcode: The generated barcode.
- * - data: The raw data.
- * - value: The barcode number.
- * - type: The barcode type.
- *
- * @see template_preprocess()
- *
- * @ingroup themeable
- */
- #}
- {{ barcode }}