Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This release requires Drupal 10.3 or above
This release includes new configuration settings designed to improve performance.
https://github.com/eileenmcnaughton/civicrm_entity/pull/514
CiviCRM Entity implements hook_civicrm_pre() and hook_civicrm_post() to trigger Drupal based entity CRUD hooks. This can be time consuming / memory intensive.
Often sites do not require this for every entity type, and some CiviCRM operations can have performance issues.
These hooks' action runs whether or not an entity type is "enabled" or not. An enabled entity type provides MORE functionality, but if an entity type is not enabled, CE still integrates all entity types into Drupal.
We had previously added a "Disable pre/post hooks" setting that disables them for ALL entity types.
Now these hooks implementation's actions can be disabled per entity type.
Defaults do not change, after upgrade functionality will work the same as it did before the upgrade.
To disable pre/post hooks for entity types, visit: /admin/structure/civicrm-entity/settings
In the "Advanced Settings" fieldset, then "Disable pre/post hooks per entity type" fieldset.
Pre/post hooks for most entity types can likely be disabled for your site. There are several reasons not to do so though.
Do not disable pre/post hooks for an entity type if:
You have enabled an entity type, especially if you use Drupal fields on these entity types, or expose the Drupal view/edit/add/delete pages.
You have Rules that react to a CiviCRM entity type event
You use Search API and index CiviCRM data for an entity type
You use other Drupal modules with CiviCRM entity types that require Drupal hooks to fire
You have developed custom modules/themes that implement Drupal hooks for CiviCRM entity types.
If something stops working after disabling, just re-enable.
Other updates:
Move some hook implementations to services: https://github.com/eileenmcnaughton/civicrm_entity/pull/515
Starts updates for performance improvements for Drupal 11 sites for hooks per https://www.drupal.org/node/3490771
Support path aliases for drupal entities of CiviCRM entity types
https://github.com/eileenmcnaughton/civicrm_entity/pull/517 and https://github.com/eileenmcnaughton/civicrm_entity/pull/518
Add support for "Autocomplete-Select" for InOperator. https://github.com/eileenmcnaughton/civicrm_entity/pull/513
declaration of FirstDotLastFilter::canFilter() is not compatible https://github.com/eileenmcnaughton/civicrm_entity/pull/516