You are here

function hackedFileGroup::compute_hashes in Hacked! 8.2

Hash all files listed in the file group.

File

src/hackedFileGroup.php, line 68

Class

hackedFileGroup
Represents a group of files on the local filesystem.

Namespace

Drupal\hacked

Code

function compute_hashes() {
  foreach ($this->files as $filename) {
    $this->files_hashes[$filename] = $this->hasher
      ->hash($this->base_path . '/' . $filename);
  }
}