function field_encrypt_test_entity_delete in Field Encryption 3.0.x
Implements hook_entity_delete().
File
- tests/
modules/ field_encrypt_test/ field_encrypt_test.module, line 49 - Contains module hooks for field_encrypt_test.
Code
function field_encrypt_test_entity_delete(EntityInterface $entity) {
if ($entity instanceof NodeInterface) {
\Drupal::messenger()
->addMessage(t('Field encrypt test hook_entity_delete: @label', [
'@label' => $entity
->label(),
]));
}
}