You are here

function filehash_file_update in File Hash 8

Same name and namespace in other branches
  1. 7 filehash.module \filehash_file_update()

Implements hook_ENTITY_TYPE_update().

File

./filehash.module, line 100
Generate hashes for each uploaded file.

Code

function filehash_file_update(EntityInterface $file) {
  filehash_save($file);
}