You are here

amazon-inline.html.twig in Amazon Product Advertisement API 8.2

Renders a link to Amazon using the product title.

Available variables:

  • title: The product title.
  • url: The product detail page URL including the Amazon associates tag.
  • item: The full return value from the APA API call.

File

templates/amazon-inline.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Renders a link to Amazon using the product title.
  5. *
  6. * Available variables:
  7. * - title: The product title.
  8. * - url: The product detail page URL including the Amazon associates tag.
  9. * - item: The full return value from the APA API call.
  10. */
  11. #}
  12. <a {{ attributes }} href="{{ url }}">{{ title }}</a>