public function YamlFormExporterBase::getBaseFileName in YAML Form 8
Get export base file name without an extension.
Return value
string A base file name.
Overrides YamlFormExporterInterface::getBaseFileName
2 calls to YamlFormExporterBase::getBaseFileName()
- YamlFormExporterBase::getArchiveFileName in src/
YamlFormExporterBase.php - Get archive file name for a form.
- YamlFormExporterBase::getExportFileName in src/
YamlFormExporterBase.php - Get export file name.
File
- src/
YamlFormExporterBase.php, line 260
Class
- YamlFormExporterBase
- Provides a base class for a results exporter.
Namespace
Drupal\yamlformCode
public function getBaseFileName() {
$yamlform = $this
->getYamlForm();
$source_entity = $this
->getSourceEntity();
if ($source_entity) {
return $yamlform
->id() . '.' . $source_entity
->getEntityTypeId() . '.' . $source_entity
->id();
}
else {
return $yamlform
->id();
}
}