crm-core-contact.html.twig in CRM Core 8.2
Same filename and directory in other branches
Default theme implementation to display CRM Core Contact data.
Available variables:
- crm_core_contact: The CRM Core Contact 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-contact.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to display CRM Core Contact data.
- *
- * Available variables:
- * - crm_core_contact: The CRM Core Contact 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_contact()
- *
- * @ingroup themeable
- */
- #}
- <article{{ attributes }}>
- {% if content %}
- {{- content -}}
- {% endif %}
- </article>