You are here

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.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default template implementation to display the background inline field.
  5. *
  6. * Available variables:
  7. * - background_image_selector: The css selector.
  8. * - image_uri: The absolute url to the image.
  9. */
  10. #}
  11. <div class="{{ background_image_selector }}" style="background-image: url('{{ image_uri }}');">
  12. &nbsp;
  13. </div>