dfp-tag.html.twig in Doubleclick for Publishers (DFP) 8
Default theme implementation to display a DFP tag.
Available variables:
- tag: \Drupal\dfp\View\TagView object.
See also
\Drupal\dfp\View\Tag\TagViewBuilder::buildPreTag()
1 theme call to dfp-tag.html.twig
- TagViewBuilder::buildPreTag in src/
View/ TagViewBuilder.php - Builds a #pre_render-able DFP tag render array.
File
templates/dfp-tag.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to display a DFP tag.
- *
- * Available variables:
- * - tag: \Drupal\dfp\View\TagView object.
- *
- * @see \Drupal\dfp\View\Tag\TagViewBuilder::buildPreTag()
- *
- * @ingroup themeable
- */
- #}
- <div id="{{ tag.placeholderId }}">
- {% if tag.isSlugHidden == false and tag.slug %}
- <div>
- {{ tag.slug }}
- </div>
- {% endif %}
- <script type="text/javascript">
- googletag.cmd.push(function() {
- googletag.display('{{ tag.placeholderId }}');
- });
- </script>
- </div>