You are here

dfp-tag.html.twig in Doubleclick for Publishers (DFP) 8

Default theme implementation to display a DFP tag.

Available variables:

See also

\Drupal\dfp\View\Tag\TagViewBuilder::buildPreTag()

File

templates/dfp-tag.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a DFP tag.
  5. *
  6. * Available variables:
  7. * - tag: \Drupal\dfp\View\TagView object.
  8. *
  9. * @see \Drupal\dfp\View\Tag\TagViewBuilder::buildPreTag()
  10. *
  11. * @ingroup themeable
  12. */
  13. #}
  14. <div id="{{ tag.placeholderId }}">
  15. {% if tag.isSlugHidden == false and tag.slug %}
  16. <div>
  17. {{ tag.slug }}
  18. </div>
  19. {% endif %}
  20. <script type="text/javascript">
  21. googletag.cmd.push(function() {
  22. googletag.display('{{ tag.placeholderId }}');
  23. });
  24. </script>
  25. </div>