background-image-formatter-inline.html.twig in Simple Background image formatter 8
Default template implementation to display the background inline field.
Available variables:
- background_image_selector: The css selector.
- image_uri: The absolute url to the image.
File
templates/background-image-formatter-inline.html.twigView source
- {#
- /**
- * @file
- * Default template implementation to display the background inline field.
- *
- * Available variables:
- * - background_image_selector: The css selector.
- * - image_uri: The absolute url to the image.
- */
- #}
- <div class="{{ background_image_selector }}" style="background-image: url('{{ image_uri }}');">
-
- </div>