Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Small release with 1 fix
Loading contacts asks Contact.get for the group and tag filters
https://git.drupalcode.org/project/civicrm_entity/-/work_items/3628599
https://git.drupalcode.org/project/civicrm_entity/-/merge_requests/52
Loading civicrm_contact entities no longer joins the group, smart group cache and tag tables for every contact. Views and pages that load many contacts, especially contacts in many groups, should be noticeably faster.
Small Backwards Compatibility Change
Check your custom code and Twig templates. Loaded civicrm_contact entities no longer carry groups and tags values. These were never entity fields, so they did not appear in Manage display or Views, but custom code could read them as plain properties:
$contact->groups
(comma-separated group IDs, including smart groups) and
$contact->tags
(comma-separated tag names), or in Twig, for example {{ elements['#civicrm_contact'].groups }}. They are now empty. If you used them, fetch the same values from the CiviCRM API instead:
civicrm_api3('Contact', 'getsingle', ['id' => $contact->id(), 'return' => ['group', 'tag']]) returns them as groups</pre> and <code>tags.