You are here

function DummyEnvironment::createFile in Realistic Dummy Content 8

File

api/src/environments/DummyEnvironment.php, line 22
Define autoload class.

Class

DummyEnvironment
The dummy environment.

Namespace

Drupal\realistic_dummy_content_api\environments

Code

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