You are here

amp-facebook.html.twig in Accelerated Mobile Pages (AMP) 8.3

Template for amp-facebook.

Available variables:

  • attributes: The HTML attributes for amp-facebook:

    • layout: The layout of the element.
    • height: The height of the element.
    • width: The width of the element.
    • data-embed-as: Embed as post or video.
    • data-align-center: Center align or not.

See also

template_preprocess_amp_facebook()

File

templates/amp-facebook.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template for amp-facebook.
  5. *
  6. * Available variables:
  7. * - attributes: The HTML attributes for amp-facebook:
  8. * - layout: The layout of the element.
  9. * - height: The height of the element.
  10. * - width: The width of the element.
  11. * - data-embed-as: Embed as post or video.
  12. * - data-align-center: Center align or not.
  13. *
  14. * @see template_preprocess_amp_facebook()
  15. */
  16. #}
  17. <amp-facebook{{ attributes }}>
  18. </amp-facebook>