function field_encrypt_entity_view in Field Encryption 8.2
Same name and namespace in other branches
- 3.0.x field_encrypt.module \field_encrypt_entity_view()
Implements hook_entity_view().
File
- ./
field_encrypt.module, line 145 - Contains module hooks for field_encrypt.
Code
function field_encrypt_entity_view(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode) {
if (field_encrypt_allow_encryption($entity)) {
\Drupal::service('field_encrypt.process_entities')
->entitySetCacheTags($entity, $build);
}
}