Install

Works with Drupal: ^10.3 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 115.08 KB
MD5: ced9a49ca7d170b4f43288b60b858223
SHA-1: ae4dbcd8664ab3278be45617c4a232789d07d24d
SHA-256: 864d5a3674aff831bd06a4e6416e1235fe4a7eda412c672b35fb2d1617caa9fb
Download zip 204.02 KB
MD5: e7bba2865805f4ecbdc839f116174176
SHA-1: 0a3d51b5a0e366fb0e14a85ce3695c7dccdb0936
SHA-256: 90f2b3324c46bd3e82b2746c0a49b038b751d295b8574233cb475ac113bc799c

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

Created by: markusa
Created on: 29 Jan 2025 at 23:56 UTC
Last updated: 30 Jan 2025 at 00:24 UTC
Bug fixes
New features

Other releases