protected function WebformEntityExportForm::getYaml in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformEntityExportForm.php \Drupal\webform\WebformEntityExportForm::getYaml()
Get the webform's raw data.
Return value
string The webform's raw data.
2 calls to WebformEntityExportForm::getYaml()
- WebformEntityExportForm::form in src/
WebformEntityExportForm.php - Gets the actual form array to be built.
- WebformEntityExportForm::submitForm in src/
WebformEntityExportForm.php - This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…
File
- src/
WebformEntityExportForm.php, line 61
Class
- WebformEntityExportForm
- Export webform configuration.
Namespace
Drupal\webformCode
protected function getYaml() {
$config_name = $this
->getConfigName();
$data = $this
->config($config_name)
->getRawData();
return WebformYaml::encode($data);
}