You are here

public function Package::appendFile in Features 8.4

Same name and namespace in other branches
  1. 8.3 src/Package.php \Drupal\features\Package::appendFile()

Parameters

array $file_array:

Return value

$this

File

src/Package.php, line 601

Class

Package
Defines a value object for storing package related data.

Namespace

Drupal\features

Code

public function appendFile(array $file_array, $key = NULL) {
  if (!isset($key)) {
    $this->files[] = $file_array;
  }
  else {
    $this->files[$key] = $file_array;
  }
  return $this;
}