bibcite-reference.html.twig in Bibliography & Citation 2.0.x
Same filename and directory in other branches
bibcite-reference.html.twig Default theme implementation to present Reference data.
Available variables:
- title_prefix: Additional output populated by modules, intended to be displayed in front of the main title tag that appears in the template.
- title_suffix: Additional output populated by modules, intended to be displayed after the main title tag that appears in the template.
- content: All reference items. Use {{ content }} to print them all, or print a subset such as {{ content.field_example }}. Use {{ content|without('field_example') }} to temporarily suppress the printing of a given child element.
- attributes: HTML attributes for the container element.
- bibcite_reference: The bibcite_reference entity with limited access to object properties and methods.
- view_mode: View mode; for example, "citation" or "default".
See also
File
modules/bibcite_entity/templates/bibcite-reference.html.twigView source
- {#
- /**
- * @file bibcite-reference.html.twig
- * Default theme implementation to present Reference data.
- *
- * Available variables:
- * - title_prefix: Additional output populated by modules, intended to be
- * displayed in front of the main title tag that appears in the template.
- * - title_suffix: Additional output populated by modules, intended to be
- * displayed after the main title tag that appears in the template.
- * - content: All reference items. Use {{ content }} to print them all,
- * or print a subset such as {{ content.field_example }}. Use
- * {{ content|without('field_example') }} to temporarily suppress the printing
- * of a given child element.
- * - attributes: HTML attributes for the container element.
- * - bibcite_reference: The bibcite_reference entity with limited access to object properties and methods.
- * - view_mode: View mode; for example, "citation" or "default".
- *
- * @see template_preprocess_bibcite_reference()
- *
- * @ingroup themeable
- */
- #}
- <article{{ attributes }}>
- {{ title_prefix }}
- {{ title_suffix }}
- {% if content %}
- {{ content }}
- {% endif %}
- </article>