public function RealisticDummyContentDummyEnvironment::createFile in Realistic Dummy Content 8.2
Same name and namespace in other branches
- 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\includesCode
public function createFile($path, $data) {
if (!is_array($this->files)) {
$this->files = array();
}
$this->files[$path] = $data;
}