You are here

crm-core-contact.html.twig in CRM Core 8

Same filename and directory in other branches
  1. 8.2 modules/crm_core_contact/templates/crm-core-contact.html.twig

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.

File

modules/crm_core_contact/templates/crm-core-contact.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display CRM Core Contact data.
  5. *
  6. * Available variables:
  7. * - crm_core_contact: The CRM Core Contact entity with limited access to
  8. * object properties and methods.
  9. * - content: A list of contact fields. Use 'content' to print all fields, or
  10. * print a subset such as 'content.field_example'.
  11. * - view_mode: View mode; for example, "teaser" or "full".
  12. * - attributes: HTML attributes for the containing element.
  13. *
  14. * @see template_preprocess_crm_core_contact()
  15. *
  16. * @ingroup themeable
  17. */
  18. #}
  19. <article{{ attributes }}>
  20. {% if content %}
  21. {{- content -}}
  22. {% endif %}
  23. </article>