You are here

function filehash_file_presave in File Hash 8

Implements hook_ENTITY_TYPE_presave().

File

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

Code

function filehash_file_presave(EntityInterface $file) {
  filehash_hash($file);
}