- Issue created by @ptmkenny
- πΊπΈUnited States nicxvan
Can you try applying this patch?
https://www.drupal.org/project/drupal/issues/3484754 π Ordering of alter "extra hooks" is a gigantic mess Active
This fixes a regression with hmia. I'm not sure it's related. But it's worth a try.
- πΊπΈUnited States nicxvan
The issue I mentioned in my previous comment will not help here.
- πΊπΈUnited States nicxvan
Unfortunately you'll need to refactor this portion, it falls under:
Breaking changes
Conditionally defined hook implementations are not supported.You'll likely want to actually implement
field_encrypt_entity_insert()
field_encrypt_entity_update()And check the entities in there:
function field_encrypt_entity_insert() { if (in_array($entitty_type, \Drupal::state()->get('field_encrypt.entity_types', []) \Drupal::service('field_encrypt.process_entities')->decryptEntity(\$entity); }
That will allow you to remove eval from this bit of code too which is a nice bonus.
- πΊπΈUnited States nicxvan
You can still use hmia then to order your hook where you want at that point.
I'm going to close this as works as designed and I'm gonna move the relevant bit to: π Support OOP hooks Active
- π―π΅Japan ptmkenny
Thank you very much for the quick response and clarifications!