You are here

public function RealisticDummyContentDummyEnvironment::createFile in Realistic Dummy Content 8.2

Same name and namespace in other branches
  1. 7.2 api/src/includes/RealisticDummyContentDummyEnvironment.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentDummyEnvironment::createFile()

File

api/src/includes/RealisticDummyContentDummyEnvironment.php, line 18

Class

RealisticDummyContentDummyEnvironment
The dummy environment.

Namespace

Drupal\realistic_dummy_content_api\includes

Code

public function createFile($path, $data) {
  if (!is_array($this->files)) {
    $this->files = array();
  }
  $this->files[$path] = $data;
}