public function WebformExporterBase::getArchiveType in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformExporterBase.php \Drupal\webform\Plugin\WebformExporterBase::getArchiveType()
Get archive file type.
Return value
string Archive file type.
Overrides WebformExporterInterface::getArchiveType
2 calls to WebformExporterBase::getArchiveType()
- WebformExporterBase::addToArchive in src/
Plugin/ WebformExporterBase.php - Add file, directory, or content to exporter archive.
- WebformExporterBase::getArchiveFileExtension in src/
Plugin/ WebformExporterBase.php - Get archive file extension for a webform.
File
- src/
Plugin/ WebformExporterBase.php, line 290
Class
- WebformExporterBase
- Provides a base class for a results exporter.
Namespace
Drupal\webform\PluginCode
public function getArchiveType() {
return $this->configuration['archive_type'] === WebformExporterInterface::ARCHIVE_ZIP && class_exists('\\ZipArchive') ? WebformExporterInterface::ARCHIVE_ZIP : WebformExporterInterface::ARCHIVE_TAR;
}