function field_encrypt_entity_update in Field Encryption 3.0.x
Same name and namespace in other branches
- 8.2 field_encrypt.module \field_encrypt_entity_update()
Implements hook_entity_update().
File
- ./
field_encrypt.module, line 141 - Contains module hooks for field_encrypt.
Code
function field_encrypt_entity_update(EntityInterface $entity) {
if (!_field_encrypt_can_eval() && field_encrypt_has_encrypted_fields($entity)) {
\Drupal::service('field_encrypt.process_entities')
->decryptEntity($entity);
}
}