protected function TabularBaseYamlFormExporter::getElements in YAML Form 8
Get form elements.
Return value
array An associative array containing form elements keyed by name.
2 calls to TabularBaseYamlFormExporter::getElements()
- TabularBaseYamlFormExporter::buildHeader in src/
Plugin/ YamlFormExporter/ TabularBaseYamlFormExporter.php - Build export header using form submission field definitions and form element columns.
- TabularBaseYamlFormExporter::buildRecord in src/
Plugin/ YamlFormExporter/ TabularBaseYamlFormExporter.php - Build export record using a form submission.
File
- src/
Plugin/ YamlFormExporter/ TabularBaseYamlFormExporter.php, line 195
Class
- TabularBaseYamlFormExporter
- Defines abstract tabular exporter used to build CSV files and HTML tables.
Namespace
Drupal\yamlform\Plugin\YamlFormExporterCode
protected function getElements() {
if (isset($this->elements)) {
return $this->elements;
}
$export_options = $this
->getConfiguration();
$yamlform = $this
->getYamlForm();
$element_columns = $yamlform
->getElementsFlattenedAndHasValue();
$this->elements = array_diff_key($element_columns, $export_options['excluded_columns']);
return $this->elements;
}