crm-core-individual.html.twig in CRM Core 8.3
Default theme implementation to display CRM Core Individual data.
Available variables:
- crm_core_individual: The CRM Core Individual entity with limited access to object properties and methods.
- content: A list of contact fields. Use 'content' to print all fields, or print a subset such as 'content.field_example'.
- view_mode: View mode; for example, "teaser" or "full".
- attributes: HTML attributes for the containing element.
See also
File
modules/crm_core_contact/templates/crm-core-individual.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to display CRM Core Individual data.
- *
- * Available variables:
- * - crm_core_individual: The CRM Core Individual entity with limited access to
- * object properties and methods.
- * - content: A list of contact fields. Use 'content' to print all fields, or
- * print a subset such as 'content.field_example'.
- * - view_mode: View mode; for example, "teaser" or "full".
- * - attributes: HTML attributes for the containing element.
- *
- * @see template_preprocess_crm_core_individual()
- *
- * @ingroup themeable
- */
- #}
- <article{{ attributes }}>
- {% if content %}
- {{- content -}}
- {% endif %}
- </article>