You are here

static function hackedFileGroup::fromList in Hacked! 8.2

Return a new hackedFileGroup listing all files specified.

1 call to hackedFileGroup::fromList()
hackedProject::hash_local_project in src/hackedProject.php
Hash the local version of the project.

File

src/hackedFileGroup.php, line 41

Class

hackedFileGroup
Represents a group of files on the local filesystem.

Namespace

Drupal\hacked

Code

static function fromList($path, $files) {
  $filegroup = new hackedFileGroup($path);

  // Find all the files in the path, and add them to the file group.
  $filegroup->files = $files;
  return $filegroup;
}