FileHandleTraitYamlFormExporter.php in YAML Form 8
File
src/Plugin/YamlFormExporter/FileHandleTraitYamlFormExporter.php
View source
<?php
namespace Drupal\yamlform\Plugin\YamlFormExporter;
trait FileHandleTraitYamlFormExporter {
protected $fileHandle;
public function createExport() {
$this->fileHandle = fopen($this
->getExportFilePath(), 'w');
}
public function openExport() {
$this->fileHandle = fopen($this
->getExportFilePath(), 'a');
}
public function closeExport() {
fclose($this->fileHandle);
}
}