protected function YamlFormEntityExportForm::getYaml in YAML Form 8
Get the form's raw data.
Return value
string The form's raw data.
2 calls to YamlFormEntityExportForm::getYaml()
- YamlFormEntityExportForm::form in modules/
yamlform_devel/ src/ Form/ YamlFormEntityExportForm.php - Gets the actual form array to be built.
- YamlFormEntityExportForm::submitForm in modules/
yamlform_devel/ src/ Form/ YamlFormEntityExportForm.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
- modules/
yamlform_devel/ src/ Form/ YamlFormEntityExportForm.php, line 62
Class
- YamlFormEntityExportForm
- Export form configuration.
Namespace
Drupal\yamlform_devel\FormCode
protected function getYaml() {
$config_name = $this
->getConfigName();
$data = $this
->config($config_name)
->getRawData();
$yaml = Yaml::encode($data);
return YamlFormTidy::tidy($yaml);
}